William Espindola
William Espindola

Reputation: 29

Server return error Unable to connect SMTP server when use ssl

Hi guis I have been migrating an application to new server, is an Ubuntu server but on the new server I have some problem to send emails using Cakephp 2.0.

If the host on cake mail config is localhost I have the following error:

SMTP Error: 530 5.7.0 Must issue a STARTTLS command first

Search on the internet the solutions may be is config SMTP ssl://mydomain.com.br on php.ini or using ssl host like this ssl://mydomain.com.br on cake mail config. On the first option nothing change, error persist and with host ssl on cake mail config I have the following error:

Unable to connect to SMTP server.

I make a simples test using only php mail() function and the email is been sent.

On this server I config postfix and dovecot may be this can be the problem?

Upvotes: 0

Views: 273

Answers (1)

waitfor
waitfor

Reputation: 128

you can use 'PHPMailer'. it's simple and easy.

https://github.com/PHPMailer/PHPMailer

Upvotes: 1

Related Questions