Plexzi Posted June 28, 2007 Share Posted June 28, 2007 Hello im kinda new to PHP but i wanted to setup a little form. And it did gave a error it's this: Warning: mail() [function.mail]: SMTP server response: 503 in C:\xampp\htdocs\wow\en\send_comments.php on line 10 This is the script i used in send_comment.php: <?php $body = "This item were sent via the website\n\n"; foreach($_POST as $field => $value) { $body .= sprintf("%s = %s\n", $field, $value); } ini_set("sendmail_from","[email protected]"); mail($my_email,$subject,$message,$headers); ?> I have download a smtp server called Free SMTP Server. I allso read alot of forums and the most of them tells me to configurate the php.ini But it doesn't tells me what to write or anything. Anyone that know what this problem is caused by ? Link to comment https://forums.phpfreaks.com/topic/57544-help-with-form/ Share on other sites More sharing options...
suma237 Posted June 28, 2007 Share Posted June 28, 2007 configure php.ini...try this im not sure SMTP = localhost ip; for Win32 only smtp_port = portnumber sendmail_from= mailid; for Win32 only ; For Win32 only. ;sendmail_from = mailid ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). ;sendmail_path = Link to comment https://forums.phpfreaks.com/topic/57544-help-with-form/#findComment-284781 Share on other sites More sharing options...
Plexzi Posted June 28, 2007 Author Share Posted June 28, 2007 ; For Win32 only. ;sendmail_from = mailid mailid = My email right ? If it is then i have everything configurated. Link to comment https://forums.phpfreaks.com/topic/57544-help-with-form/#findComment-284782 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.