Need help sending an email from with a php script

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Need help sending an email from with a php script

Postby TravelSite » 07. August 2005 16:17


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 "".

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?
Posts: 1
Joined: 07. August 2005 16:00

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 77 guests