Page 1 of 1

Mail Function error for gmail/hotmail

Posted: Sat Jul 03, 2010 10:16 pm
by leng0788
Hi, I got the error message:
"Warning: mail() [function.mail]: SMTP server response: 530 5.7.0 Must issue a STARTTLS command first in
C:\xampp\htdocs\php_test\firstmail.php on line 6"


when I tried to use the mail() function. I'm using xxamp and it works fine for all PHP except for send mail.

How do I configure my php.ini and sendmail.ini in order to use the mail() function? Really appreciate your help.

Re: Mail Function error for gmail/hotmail

Posted: Sun Jul 04, 2010 2:12 am
by internet-solution
Gmail and Hotmail requires TLS protocol for authentication, which is not possible through php mail() function alone. Google for php mail with TLS and you will find many php mail classes that provides this.