Issue sending mails through 3rd party

gxHL

Registered
Mar 25, 2016
2
0
1
Greece
cPanel Access Level
Root Administrator
Hi I would like to use 3rd party SMTP settings to send emails from my app.
But for some reason I cannot use TLS in my app to send the emails.
I tried couple services which include Amazon SES, Sendinblue and Sendgrid.


These are my settings.

SMTP Host : tls://smtp.sendgrid.net
SMTP User : myusername
SMTP Pass : mypass
SMTP Port : 587 tried also with 25, 2525 and SSL 465 with (ssl://smtp.sendgrid.net)

I have searched through the forums and couldn't find answers.
I read a lot of references about the firewall. I have to mention that the installation is default by my hosting company to my VPS so I didn't installed any and I don't know if I have any installed.

I am always receiving an error like this
PHP Warning: stream_socket_enable_crypto(): Peer certificate CN=`vmi67875.example.host' did not match expected CN=`smtp.sendgrid.net'

PHP Notice: Error: Password not accepted from server!


  • CENTOS 7.2 x86_64 kvm – vmi67875
  • WHM 56.0 (build 24

    Any help appreciated.
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,225
463
Hello,

I'm happy to see you were able to address the issue. Thank you for updating us with the outcome.