In php I trust Posted February 21, 2010 Share Posted February 21, 2010 Some way, <?php $to = "[email protected]"; $subject = "Test mail"; $message = "Hello! This is a simple email message."; $from = "[email protected]"; $headers = "From: $from"; mail($to,$subject,$message,$from); echo "Mail Sent."; ?> gives an error in WAMP: SMTP server response: 530 SMTP authentication is required. in C:\wamp\www\mailer.php on line 7 Mail Sent. Anyone got an idea? Thanks in advance, Sincerly Quote Link to comment https://forums.phpfreaks.com/topic/192797-configuring-mail/ Share on other sites More sharing options...
greatstar00 Posted February 21, 2010 Share Posted February 21, 2010 mail($to,$subject,$message,$from); should be mail($to,$subject,$message,$headers); Quote Link to comment https://forums.phpfreaks.com/topic/192797-configuring-mail/#findComment-1015581 Share on other sites More sharing options...
perseadrian Posted February 21, 2010 Share Posted February 21, 2010 Some way, <?php $to = "[email protected]"; $subject = "Test mail"; $message = "Hello! This is a simple email message."; $from = "[email protected]"; $headers = "From: $from"; mail($to,$subject,$message,$from); echo "Mail Sent."; ?> gives an error in WAMP: SMTP server response: 530 SMTP authentication is required. in C:\wamp\www\mailer.php on line 7 Mail Sent. Anyone got an idea? Thanks in advance, Sincerly You can't run mail function on your local PC without a mail server. The package Wamp don't include the mail server, and the function will give you an error. You must configure it, or to try it on an outside server. Quote Link to comment https://forums.phpfreaks.com/topic/192797-configuring-mail/#findComment-1015640 Share on other sites More sharing options...
PFMaBiSmAd Posted February 21, 2010 Share Posted February 21, 2010 The error message indicates that there is a mail server installed and running. The From: address must be a valid email address at the sending mail server to both get your mail server to accept and send the email and for receiving mail servers to accept it. Quote Link to comment https://forums.phpfreaks.com/topic/192797-configuring-mail/#findComment-1015642 Share on other sites More sharing options...
In php I trust Posted February 21, 2010 Author Share Posted February 21, 2010 First of all: thanks a lot for your replies! Further: 1)Valid: what does that exactly mean: if my gmail adresses do exist, could an error occur then? 2) Yes I tried Axigen, but the configuration wizard doesn't finish succesfully. It gives: 'failed to connect to cli server for some reason'. 3) Has anyone an idea for another (simple) mail server I can configure myself? I'm a beginner 4) What does the authentication mean, as mentioned in the error message? 5) Can I do something in php.ini with sendmail to solve this particular issue? Thanks in advance and kind regards, Quote Link to comment https://forums.phpfreaks.com/topic/192797-configuring-mail/#findComment-1015829 Share on other sites More sharing options...
ultraloveninja Posted February 21, 2010 Share Posted February 21, 2010 You need to have a mail service up an running on your server. If it was running on linux your could install sendmail or postfix and that is the service that runs mail. On windows, you can configure your server for mail services: http://www.ilopia.com/Articles/WindowsServer2003/EmailServer.aspx Quote Link to comment https://forums.phpfreaks.com/topic/192797-configuring-mail/#findComment-1015845 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.