John Drako wrote:
Quote:
Currently, I run postfix on my own server to send message from my site
(password requests, account activation notices and other messages).
I have phpMailer on the server and all the messages (currently about
1000 messages are sent daily) are sent by SMTP through postfix.
>
I'm contemplating moving this particular site's email to Gmail.
>
Is it possible to send mail through Gmail's servers with authentication
and everything?
>
Hi John,
According to
http://lifehacker.com/software/email...ver-111166.php
gmail uses smtp over tls, with smtp authentication.
I would use pear mail, an basic guide is available here
http://www.phpmaniac.net/wiki/index.php/Pear_Mail but is does not cover
the authentication, or the use of smtp (as opposed to the mail() function).
iirc if you use smtp auth, the connection is automatically TLS.
You would want to use the smtp factory, with the following params:
$smtp_params["host"] = "smtp.gamil.com";
$smtp_params["port"] = "25";
$smtp_params["auth"] = true;
$smtp_params["username"] = "gmail_user@gmail.com";
$smtp_params["password"] = "gmail_password";
$mail_object =& Mail::factory("smtp", $smtp_params);
--
Hope this helps, Cheers
Leigh Finch
www.phpmaniac.net