Hello ttplayer, If GMail does allow sending through socket, wait a bit, I'll upload a class written on my own for sending mail through a custom SMTP via socket. -- With best regards from Ukraine, Andre Skype: Francophile; Wlm&MSN: arthaelon @ yandex.ru; Jabber: arthaelon @ jabber.org Yahoo! messenger: andre.polykanine; ICQ: 191749952 Twitter: m_elensule ----- Original message ----- From: ttplayer <fikm@xxxxxx> To: php-general <php-general@xxxxxxxxxxxxx> Date: Sunday, April 4, 2010, 3:28:33 PM Subject: About the php mail function and imap_mail function Hi, everyone! I have a problem about the php mail function and imap_mail function. When I use the mail or imap_mail function to send a email, the php script sends the email through the local mail sever with sendmail or another MTA supported. However, I have a gmail account. I just want the php script to send emails via my gmail account. How can I do it? Thank you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php