I\'m sending email from PHP through the Gmail SMTP server. I\'ve been using the CakePHP email component with SMTP settings set. I originally had it all working fine using SS
Why not use PEAR?
http://email.about.com/od/emailprogrammingtips/qt/PHP_Email_SMTP_Authentication.htm
Change the port in the second example.