Git Product home page Git Product logo

libmyemail's People

Contributors

codayblue avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

libmyemail's Issues

cannot Build at centos 8

cannot Build at centos 8

with below error

fatal error: Poco/Net/SecureSMTPClientSession.h: No such file or directory
#include "Poco/Net/SecureSMTPClientSession.h" /* Send the email over TLS this is needed */
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/myemail.dir/build.make:63: CMakeFiles/myemail.dir/myemail.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:68: CMakeFiles/myemail.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

Make config options to store username and password

Should make username and password optional and have another option to be able to pull it out of a config file also it should be looked into encrypting these values so that it is a little more secure.

[enhancement] no auth required

It could be very interesting to not have any authentication required and be usable with:
SELECT sendmail('from@mydomain', 'to@mydomain', 'subject', 'body', 'localhost', 25);

TLS crashes server, no mail without TLS

Hi,
I'm trying to use libmyemail on Gentoo with mysql 8.0.23
I never used plugin with mysql...
What I did:

[ 50%] Building CXX object CMakeFiles/myemail.dir/myemail.cc.o
/usr/local/src/libmyemail/source/myemail.cc:33:4: erreur: « my_bool » ne nomme pas un type; vouliez-vous utiliser « bool » ?
   33 |    my_bool sendmail_init(UDF_INIT *initid, UDF_ARGS *args, char *message);
      |    ^~~~~~~
      |    bool
/usr/local/src/libmyemail/source/myemail.cc:41:1: erreur: « my_bool » ne nomme pas un type; vouliez-vous utiliser « bool » ?
   41 | my_bool sendmail_init(UDF_INIT *initid, UDF_ARGS *args, char *message) {
      | ^~~~~~~
      | bool
make[2]: *** [CMakeFiles/myemail.dir/build.make:82 : CMakeFiles/myemail.dir/myemail.cc.o] Erreur 1
make[1]: *** [CMakeFiles/Makefile2:95 : CMakeFiles/myemail.dir/all] Erreur 2
  • sed -i 's/my_bool/bool/g' ../source/myemail.cc
  • make
  • make install
  • ls /usr/lib64/mysql/plugin/libmyemail.so
    /usr/lib64/mysql/plugin/libmyemail.so
  • rc-service mysql restart
  • mysql -uroot -p -e "CREATE FUNCTION sendmail RETURNS STRING SONAME 'libmyemail.so';"
    But:
    Testing with:
    mysql > SELECT sendmail('from@mydomain', 'to@mydomain', 'subject', 'body', 'localhost', 587, 'myuser', 'mypwd', 1);
    crashes the mysql server.
    SMTP logs:
    postfix/smtpd[16100]: warning: TLS library problem: error:14094418:SSL routines:ssl3_read_bytes:tlsv1 alert unknown ca:ssl/record/rec_layer_s3.c:1543:SSL alert number 48:
    Testing with:
    mysql > SELECT sendmail('from@mydomain', 'to@mydomain', 'subject', 'body', 'localhost', 25, '', '', 0);
    nothing really happens.
    SMTP logs:
Apr 27 00:54:57 mysmtpserver postfix/smtpd[15375]: connect from mysmtpserver[myip]
Apr 27 00:54:57 mysmtpserver postfix/smtpd[15375]: disconnect from mysmtpserver[myip] ehlo=1 quit=1 commands=2

Any idea ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.