Topic: how to send mail via gmail?

OpenSSL support  enabled 
OpenSSL Version  OpenSSL 0.9.8b 04 May 2006 

I'm done it

FIND

if (!($socket = fsockopen($smtp_host, $smtp_port, $errno, $errstr, 15)))

CHANGE TO

if (!($socket = fsockopen('ssl://'.$smtp_host, $smtp_port, $errno, $errstr, 15)))

And then this error code:

An error was encountered

--------------------------------------------------------------------------------

Could not connect to smtp host "smtp.gmail.com:465" (32767) ().

The error occurred on line 155 in /include/email.php

But,Now,how to send mail via gmail?

Re: how to send mail via gmail?

You don't need to change the code like you have posted above. To use SSL, you need to check the option "Encrypt SMTP using SSL" at "<FORUM_ROOT>/admin/settings.php?section=email"

Re: how to send mail via gmail?

From memory to send smtp mail via google it uses authenticated SMTP using the same login details as for your POP3/IMAP access credentials.

Re: how to send mail via gmail?

I did all the changes.

1.Encrypt SMTP using SSL,it's right.
2.From memory to send smtp mail via google it uses authenticated SMTP using the same login details as for your POP3/IMAP access credentials.too

but, "smtp.gmail.com:465" (32767) ().

Re: how to send mail via gmail?

Yes; but it requires a login not just a secure connection.

6 (edited by scuba323 2012-10-11 21:31)

Re: how to send mail via gmail?

Well I didn't have to change anything in the PHP, and mine is sending just fine. Try using this for help. And make sure your PHP supports SSL.
https://support.google.com/mail/bin/ans … swer=13287