You don't need sendmail. In php.ini you need to add something. SMTP = [EMAIL PROTECTED] 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 = '[EMAIL PROTECTED]'; > $subject = 'Feedback from web site'; > $mailcontent = 'Customer name: '.$name."\n" > 'Customer email: '.$email."\n" > "Customer comments: \n".$feedback."\n"; > $fromaddress = 'From: [EMAIL PROTECTED]'; > > mail($toaddress, $subject, $mailcontent, $fromaddress); > ?> > > and changed the php.ini to: > > [mail function] > ; For Win32 only. > SMTP = [EMAIL PROTECTED] > smtp_port = 25 > ; For Win32 only. > sendmail_from = [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php