Re: mail problem
| From: | John Taylor-Johnston | Date: | Sun, 11 Jul 2004 17:41:55 +0000 |
| Subject: | Re: mail problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-190187@lists.php.net to get a copy of this message | ||
You don't need sendmail. In php.ini you need to add something.
SMTP = smtp@uol.com.br is not right? You want an address, not an email.
SMTP = smtp.uol.com.br is more likely the correct address.
Joao Gomes wrote:
> 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