Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: PHP
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 10-Nov-12 2:24am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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/[^]
  Permalink  

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



Advertise | Privacy | Mobile
Web04 | 2.8.141223.1 | Last Updated 11 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100