Page 1 of 1

Need help sending an email from with a php script

PostPosted: 07. August 2005 16:17
by TravelSite
Hi,

I have Xampp installed in Windows XP localhost and (almost) everything seems to be working fine. I can send external emails using Mecury Mails own control program. However I can't send email from within my php scripts (e.g. using the mail() function) - and likewise I can't send mail from the http://localhost/xampp/mailform.php XAMPP page.

I've tried to follow the instructions on http://localhost/xampp/mercury-help.php - including setting up a new user account in Outlook Express called "newuser" with password "wampp" and Pop3/smtp "127.0.0.1".

The test email doesn't seem to work either when using http://localhost/xampp/mailform.php.

Is there something I need to do in php.ini or MERCURY.INI (I am a complete novice when it comes to this stuff). I've spent the past two days trying to get the mail() to work to no effect. I'd be very grateful if any one can provide some insight into what I'm doing wrong/what I need to do.

In php.ini I have:
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
sendmail_from = postmaster@localhost

Is this ok?