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","ztyl3@htmail.com"); 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 ? Quote Link to comment 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 = Quote Link to comment 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. Quote Link to comment 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.