Pydio 8 – How to send email via SMTP?

Home Forums Community Pydio 8 – How to send email via SMTP?

Tagged: , ,

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #113643
    Profile photo of abolfazl
    Anonymous

    Hello all,
    I am running Pydio 8 on debian machine with latest PHP 7.0.x I am trying to send out emails via SMTP but I can’t figure out how to configure this.

    This article shows how to do this: https://pydio.com/en/docs/v8/configure-mail-digest but I don’t have SMTP option at all on my pydio instance. I only have PHPMailer-lite in plugins section.

    How can I send email via SMTP?
    Please help


    #113656
    Profile photo of Charles
    Charles
    Keymaster

    Hi,
    The SMTP connection is available in the Enterprise Distribution. Otherwise you should be able to configure the machine sendmail to use smtp, then let pydio use sendmail.
    -c


    Charles, Pydio author - doing my best to help !
    If you like the software or want to say thanks, pay by a tweet, mention #pydio or follow us

    #113673
    Profile photo of abolfazl
    Anonymous

    Thanks for your answer Charles. I’ll try to make sendmail work somehow.


    #113683
    Profile photo of abolfazl
    Anonymous

    Hi Neu,

    I’m using the sendmail function of php (7.1) and I did it by hacking /pydio/plugins/mailer.phpmailer-lite/PhpMailLite.php in Pydio 8.0.1

    The plugin sends the mail to sendmail() wich needs some params.

    So if you want to hack a few lines of code, here’s how :

    After that :
    //All option are set in the PHPMailer class
    $mail->Mailer = $this->getContextualOption(Context::emptyContext(), “MAILER”);

    Insert and modify at about line 63 :
    ///// Check for params here : https://github.com/PHPMailer/PHPMailer
    $mail->isSMTP(); // Set mailer to use SMTP
    $mail->SMTPAuth=true;
    $mail->SMTPSecure=’ssl’;
    $mail->Host=’myhost.com’;
    $mail->Port=’465′;
    $mail->Username=’sender@host.com’;
    $mail->Password=’*****************’;

    This was inserted before this line :
    $mail->Sendmail = $this->getContextualOption(Context::emptyContext(), “SENDMAIL_PATH”);

    I’m going to see if it can make the plugin now because in case of update the plugin might be overwritten :)


    #113711
    Profile photo of abolfazl
    Anonymous

    I just made a plugin you should give a try : https://github.com/squarou/pydio-mailer.phpmailer-smtp/archive/master.zip

    Tell me if it respond to your demand.

    @Charles : I’m I doing right : I’ve just cloned the original mail.phpmailer and add some SMTP credentials and server params ?


    #113724
    Profile photo of Charles
    Charles
    Keymaster

    yep should be ok :-)


    Charles, Pydio author - doing my best to help !
    If you like the software or want to say thanks, pay by a tweet, mention #pydio or follow us

    #113743
    Profile photo of abolfazl
    Anonymous

    Great :)

    So here’s the repo for that plugin : https://github.com/squarou/pydio-mailer.phpmailer-smtp/releases

    I’m doing my best to make it compliant with all translations and with xml manifest. Any suggests are welcome on github :)


Viewing 7 posts - 1 through 7 (of 7 total)

The forum ‘Community’ is closed to new topics and replies.