Hi all,
I wrote a script that registers users into a mysql database. The entire script runs perfectly except for the successful registration email that is supposed to be sent. My problem is...It doesnt send! I can't figure out what's wrong with this one line of code:
mail($theemail, "Hogwarts eXtreme Registration", $theusername."\n\nThank you for registering at Hogwarts eXtreme, the ULTIMATE Harry Potter RPG! Your account information is as follows:\n\nUsername:".$theusername."\nPassword:".$thepassword."\n\nYou can access Hogwarts eXtreme at http://rpg.harrypotterfun.com, and be sure to visit http://www.harrypotterfun.com for the latest Harry Potter news and updates!\n\nThanks for joining!\n-Hogwarts eXtreme Staff");
And our variables (for the sake of this example)...
$theemail="someone@somewhere.com";
$theusername="Someone";
$thepassword="thisisthepword";
All information is verified and trimmed before processing and sending this email. I just don't understand why the email is not being sent.
Any ideas?