Jump to content

Help with form.


Plexzi

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.