Jump to content

mail function problem


ShoeLace1291

Recommended Posts

I can't figure out why, but I am getting this message when I submit my form.

 

Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\xampp\htdocs\ladders\join.php on line 105

 

This is my mail code:

 

$subject = "Storm Gaming League Registration";
	$message = "Hello, $alias.  Thank you for joining Storm Gaming League.  Before you can use all features of the site, you must first activate your account.  You can do so by visiting the link below:<br><br><a href='localhost/ladders/join.php?do=activate&code=$actcode'>localhost/ladders/join.php?do=activate&code=$actcode</a><br><br>If the above link did not work properly, you can also activate your account by copying localhost/ladders/join.php?do=activate and pasting it into your url bar.  You must then enter your activation code in the form provided on the page.  Your account will then be active if you entered it correctly.<br><br>If you are still having trouble with the account activation process, please email our support team.<br><br>Best regards,<br>Storm Gaming.net";
	$sender = "unholyprayer@stormgaming.net";

			mail($email,"Storm Gaming League Registration",$message,$sender);

 

$email is equal to $_POST['email'];

 

Thanks for any help.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.