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.
Mail Function error for gmail/hotmail
Moderator: General Moderators
-
internet-solution
- Forum Contributor
- Posts: 220
- Joined: Thu May 27, 2010 6:27 am
- Location: UK
Re: Mail Function error for gmail/hotmail
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.