How to send email from localhost in php? i have also configured php ini file and send
email file but i have the error when i run this program--- Warning: mail() [function.mail]: SMTP server response: 530 5.7.0 Must issue a STARTTLS command first. sy10sm34464318pac.15 - gsmtp in C:\xampp\htdocs\reena\mail.php on line 9

Failure: Email was not sent!

so please tell me where is the problem and how can i succesfully send email from localhost?
please give me suitable example with code also.

Member Avatar for diafol

Have you set up Mercury Mail to be your smtp server?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.