Welcome Guest, Not a member yet? Register   Sign In
First Email
#2

[eluser]KnMn[/eluser]
Have you started Mercury in the XAMPP control panel?

Mercury is the mail transport system included with XAMPP. It is your SMTP server.

If you haven't started it, do that now, and try again.

When I tried it, PHP gave me an error saying that sendmail_from wasn't set in php.ini. To fix this, you can either include a "From:" in the additional headers of your mail function, like so:
Code:
mail($to, $subject, $message, "From: [email protected]");

Or you can edit your php.ini. For XAMPP, the only php.ini that matters is in /xampp/apache/bin/.
Find the line that says:
Code:
;sendmail_from = [email protected]
and remove the semicolon from the start of the line to uncomment it. You'll probably want to change the email address too.

Save php.ini, restart apache and try again.

Hope this helps Smile

EDIT:
Just remembered, another error that I got was a response from the SMTP server saying that it didn't relay non-local mail.

If you get this, you can fix it by going into Mercury (Click the admin button next to Mercury on the XAMPP control panel). Then go to Configuration > MercuryS SMTP Server. On the Connection Control tab, under Relaying Control, uncheck Do not permit SMTP Relaying of non-local mail.

NOTE: I'm not sure if this is a good idea. I don't know much about SMTP servers. I think this just means that anyone can connect to your SMTP server and send mail with it? If you want to know more about SMTP servers and Mercury and stuff, just google. Smile


Messages In This Thread
First Email - by El Forum - 01-06-2009, 03:24 AM
First Email - by El Forum - 01-06-2009, 05:29 AM
First Email - by El Forum - 01-06-2009, 11:47 PM
First Email - by El Forum - 01-07-2009, 01:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB