Mautic Community Forums

Email sending problem

Hi all,



I set up Mautic on my server, do the CRON jobs and all but, when I want to send an email, it doesnt work. I use Sendgrid services to send it and when I want to connect it’s show me this error (pass and Id are well registred):



Unable to connect with TLS encryption Log data: ++ Starting MauticEmailBundleSwiftmailerTransportSendgridTransport << 220-server.graditest.com ESMTP Exim 4.86 #2 Fri, 20 Nov 2015 03:31:58 +0000 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail. >> EHLO marketing.graditest.com << 250-server.graditest.com Hello server.graditest.com [162.144.202.98] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS 250 HELP >> STARTTLS << 220 TLS go ahead !! Unable to connect with TLS encryption

++ Starting MauticEmailBundleSwiftmailerTransportSendgridTransport << 220-server.graditest.com ESMTP Exim 4.86 #2 Fri, 20 Nov 2015 03:31:58 +0000 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail. >> EHLO marketing.graditest.com << 250-server.graditest.com Hello server.graditest.com [162.144.202.98] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS 250 HELP >> STARTTLS << 220 TLS go ahead !! Unable to connect with TLS encryption





Anyone have an idea? is it from my server? something I missed?



Thx






Hi all,

I set up Mautic on my server, do the CRON jobs and all but, when I want to send an email, it doesnt work. I use Sendgrid services to send it and when I want to connect it’s show me this error (pass and Id are well registred):

Unable to connect with TLS encryption Log data: ++ Starting MauticEmailBundleSwiftmailerTransportSendgridTransport << 220-server.graditest.com ESMTP Exim 4.86 #2 Fri, 20 Nov 2015 03:31:58 +0000 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail. >> EHLO marketing.graditest.com << 250-server.graditest.com Hello server.graditest.com [162.144.202.98] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS 250 HELP >> STARTTLS << 220 TLS go ahead !! Unable to connect with TLS encryption
++ Starting MauticEmailBundleSwiftmailerTransportSendgridTransport << 220-server.graditest.com ESMTP Exim 4.86 #2 Fri, 20 Nov 2015 03:31:58 +0000 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail. >> EHLO marketing.graditest.com << 250-server.graditest.com Hello server.graditest.com [162.144.202.98] 250-SIZE 52428800 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS 250 HELP >> STARTTLS << 220 TLS go ahead !! Unable to connect with TLS encryption

Anyone have an idea? is it from my server? something I missed?

Thx

The error message says:

Try a different encryption or a port number.

Hi escopecz,

Thanks to always reply :slight_smile:
can you be a bit more specific, I’m learning and sometimes can be a bit difficult to me. Ok, I need to change TLS, should it be:

  1. from Mautic?
  2. from my server?
  3. from sendgrid?

On Mautic, I just have option to change “Service to send mail through”. As I saw in another post where someone have a problem with sendgrid, i try to use “Other SMTP Server” with this config:
SMTP host : smtp.sendgrid.net
SMTP port : 465
SMTP encryption type : SSL / TLS / None (I tried all)
SMTP authentication mode : Login
and set my Sendgrid password and username.

But it’s not working too. Something from Sendgrid I dind’t configurate well? Can it be from my server side?

Thx
Loic

I’m no expert for email configuration. All I have is google search. From the Sendgrid docs:

[quote]Change your SMTP username and password to your SendGrid credentials
Set the server host name to smtp.sendgrid.net
Use ports 25 or 587 for plain/TLS connections and port 465 for SSL connections[/quote]

So I’d say that you should change port from 465 to 587 to use TLS.

hi Escopecz,

I check this doc and change the port from 465 to 587 but still don’t work. The strange things is when I install Mautic, the Sendgrid conection was working. But now, not possible to use it. Can it be something wrong configurated on my server? Usualy Mautic should use HTTPS?

Thx

Check the Mautic logs (app/logs dir) and server logs for a PHP error.

I am using a shared host (1and1) so found that in order to connect to Sendgrid, I have to select “Other SMTP Server” in Mautic then configured as follow:

SMTP host: smtp.sendgrid.net
TSL encryption
SMTP port: 2525
username and password as usual.

Hope this helps.

Kind regards,

Linh

Hi Linh,

Nice!!! It’s works perfectly!!!

Tnaks a lot
Loic

Glad to have helped :slight_smile: