Hi
Been using phpmailer for a while on a local machine, and everything works ok.
Now I need to run my code on a virtual server but simply cannot get secure emails to send, eg anything on port 465 / 587.
Unencrypted emails send fine...

My basic set up:
Wampserver 2.0i
(mysql 5.1.36, apache 2.211, php 5.30 and the latest phpmailer)

Has anyone had any trouble like this, or suggestions? thanks

baz

    OK, problem not gone away...

    Perhaps I need to give you more background to this issue. I'm helping a healthcare organisation set up an emailing service.
    They operate within the N3 network and we plan to use nhs.net as the email gateway. Emails will be sent from an nhs.net account to another nhs.net account.

    nhs.net uses TLS SMTP on port 587 for outbound traffic.

    For my other projects I use phpMailer and use parameters like the ones shown above to send emails, eg gmail and non encrypted emails etc.

    So - I've set up an installation of phpMailer (plus Wampserver 2.0i) on a dedicated virtual machine within the N3 network. The identical configuration works ok on my development machine (using gmail settings). I cannot try out nhs.net settings outside the N3 network because additional authentication is needed.

    On the N3 test rig I just cannot get any emails to send via the nhs.net smtp server.
    We have been able to send unencrypted emails by using a local Exchange server on port 25, so I know the test rig can send emails, just not via nhs.net

    The errors I get are SMTP server not reachable, and SMTP authentication failed...

    I can provide more specific details if you like...

    Any ideas??
    Thanks!

      bazaarboy;10926214 wrote:

      OK, problem not gone away...

      Perhaps I need to give you more background to this issue. I'm helping a healthcare organisation set up an emailing service.
      They operate within the N3 network and we plan to use nhs.net as the email gateway. Emails will be sent from an nhs.net account to another nhs.net account.

      nhs.net uses TLS SMTP on port 587 for outbound traffic.

      For my other projects I use phpMailer and use parameters like the ones shown above to send emails, eg gmail and non encrypted emails etc.

      So - I've set up an installation of phpMailer (plus Wampserver 2.0i) on a dedicated virtual machine within the N3 network. The identical configuration works ok on my development machine (using gmail settings). I cannot try out nhs.net settings outside the N3 network because additional authentication is needed.

      On the N3 test rig I just cannot get any emails to send via the nhs.net smtp server.
      We have been able to send unencrypted emails by using a local Exchange server on port 25, so I know the test rig can send emails, just not via nhs.net

      The errors I get are SMTP server not reachable, and SMTP authentication failed...

      I can provide more specific details if you like...

      Any ideas??
      Thanks!

      Firewall.

        ok i fixed the problem...
        i previously used to define

        $mail->Host = "tls://send.nhs.net";

        ... and that worked fine for several months.
        but i also thought there was a firewall issue, so I used an alternative way:

        $mail->SMTPSecure = "tls";
        $mail->Host = "send.nhs.net";

        That simple change allowed the mail to go through...
        Hope this is useful to someone lol

        baz

          Write a Reply...