Jump to content

Maybe I'm blind....


WarDeities

Recommended Posts

Can anyone see the problem in this code...email wont send.... ??? ??? ???

 

 

$subject="Your Draconic Quest Activation Key!";

$message="You have registered on Draconic Quest, one of todays most addictive and fasting growing free mmorpgs! <br>

Please copy and pase the URL to activate your account! <br>

$path/activate.php?player=$player&password1=$password1&$activecode=$activecode <br>

Thank you for registering! <br><br>

 

Draconic Quest Admin/Webmaster";

mail($email1, $subject, $message, "From: Draconic Quest<[email protected]>,\nX-Mailer: PHP/" . phpversion());

 

$email1 is the email address from previous screen via $_POST

 

 

....maybe I'm losing it....I don't see anything wrong.

 

 

 

AS ALWAYS THANKS FOR TAKING TIME TO LOOK AT MY POST  :D

Link to comment
https://forums.phpfreaks.com/topic/90146-maybe-im-blind/
Share on other sites

Try adding this just for debugging purposes:

 

if(mail($email1, $subject, $message, "From: Draconic Quest<[email protected]>,\nX-Mailer: PHP/" . phpversion()))
    echo "Success!  Email was sent!";
else
    echo "There was an error and the mail was not sent!";

 

If you see the success message when you run your script, then just give it some time, perhaps the email isn't being delivered immediately, or check your spam box.

 

Theo

Link to comment
https://forums.phpfreaks.com/topic/90146-maybe-im-blind/#findComment-462261
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.