Welcome Guest, Not a member yet? Register   Sign In
SMTP Email having problem with Gmail/TLS connection
#3

(This post was last modified: 02-27-2016, 09:14 AM by skunkbad.)

PHP Code:
$cfg = [
    'protocol'     => 'smtp',
    'smtp_host'    => 'ssl://smtp.gmail.com',
    'smtp_port'    => '465',
    'smtp_user'    => '[email protected]',
    'smtp_pass'    => 'MyDumbPassword123',
    'smtp_timeout' => '30',
]; 

This works for me, all the time.

You might need to go into gmail settings and tell them to allow all email from the app. Some kind of "untrusted app" setting.

Your email not always going through is a good reason to implement a custom mail queue. You can always resend an email if it is in the queue.
Reply


Messages In This Thread
RE: SMTP Email having problem with Gmail/TLS connection - by skunkbad - 02-27-2016, 09:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB