ShoeLace1291 Posted July 16, 2007 Share Posted July 16, 2007 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 = "[email protected]"; mail($email,"Storm Gaming League Registration",$message,$sender); $email is equal to $_POST['email']; Thanks for any help. Link to comment https://forums.phpfreaks.com/topic/60249-mail-function-problem/ Share on other sites More sharing options...
metrostars Posted July 16, 2007 Share Posted July 16, 2007 $sender = "From: [email protected]"; Link to comment https://forums.phpfreaks.com/topic/60249-mail-function-problem/#findComment-299725 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.