Click here to Skip to main content
15,891,423 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi friends,
i want to send the mail using php. but i get the following error
Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for

i am using wamp server. so what change i have done in wamp server. so i can send test mail using wamp server on my local host.
Posted

To use the internal commands of PHP to send email you need to configure an smtp server on your computer.
There are libraries over the internet that will help you configure and send using external smtp servers such as gmail (assuming you have an account).
Try searching "PHP send email using gmail" and you`ll get result such as:
http://stackoverflow.com/questions/712392/send-email-using-gmail-smtp-server-from-php-page
http://stackoverflow.com/questions/10380051/how-do-i-send-email-using-gmail-through-mail-where-do-i-put-the-password
 
Share this answer
 
I use the phpmailer function for send mail in php in local host.
following link i use for send mail
http://www.vishalkumar.in/2009/06/php-mail-using-gmail-smtp-tutorial/[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900