Click here to Skip to main content
13,142,875 members (51,447 online)
Rate this:
Please Sign up or sign in to vote.
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 10-Nov-12 1:24am
Rate this: bad
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:
Rate this: bad
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[^]

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.170915.1 | Last Updated 11 Dec 2012
Copyright © CodeProject, 1999-2017
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