mail problem
| From: | Joao Gomes | Date: | Sun, 11 Jul 2004 00:33:55 +0000 |
| Subject: | mail problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-190157@lists.php.net to get a copy of this message | ||
Hi,
I am a beginner in php and I am trying to send emails from my machinne, I
dont have any mail server installed in my computer (e.g. sendmail), btw i am
running Windows XP, i wrote this script:
<?
$name=$HTTP_POST_VARS['name'];
$email=$HTTP_POST_VARS['email'];
$feedback=$HTTP_POST_VARS['feedback'];
$toaddress = 'myreceiver@linuxmail.org';
$subject = 'Feedback from web site';
$mailcontent = 'Customer name: '.$name."\n"
'Customer email: '.$email."\n"
"Customer comments: \n".$feedback."\n";
$fromaddress = 'From: myaccount@uol.com.br';
mail($toaddress, $subject, $mailcontent, $fromaddress);
?>
and changed the php.ini to:
[mail function]
; For Win32 only.
SMTP = smtp@uol.com.br
smtp_port = 25
; For Win32 only.
sendmail_from = myaccount@uol.com.br
Why it doesnt work? I am really lost here... if some nice-php-coder could
help me I would really appreciate.
thanks.