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","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 ?

 

Link to comment
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.