your_death_1994
New Member
- Messages
- 21
- Reaction score
- 1
- Points
- 0
Hey, I was wondering if you guys could help me out here. I was having an error with a php mail() function. I am using this function to send emails after a user registers for my site.
Here is the PHP code:
Yes, all the variables were defined earlier in the PHP code.
I actually tested this registration out. It worked I got the, "An activation email ..." output, but I haven't received an email. Also to let you know, I have waited for over 24 hours, and checked my junk mail.
Oh yes, I did receive an email when I sent it to my Chopin email address, (The email used to send the message).
Example: raazi@pokemonevolution.x10.mx
But got nothing when i sent it to my hotmail account.
Thank you, for taking the time to read.
Here is the PHP code:
PHP:
$Subject="Welcome to Pokemon Evolution!";
$Message="
Hey ".$Username.",\r\n
Welcome to Pokemon Evolution.
I\'m glad to see you join our community.
This is an activation email, to activate your new account.
Before you activate your account, here is your login information:
User ID: <b>".mysql_insert_id()."</b>
Username: ".$Username."
Password: ".$Password."
To activate your account, follow the 2 step guide provided below.
(or copy/paste it on your browser\'s address bar).
Step 1: Go to the link provided below.
http://pokemonevolution.x10.mx/activate.php
Step 2: Enter your Activation Key and Activation ID:
Activation ID: ".$ActivationID."
Activation Key: ".$ActivationKey."
Note: Please do not send a reply message, it is an automated message!";
$header="From: Raazi <raazi@pokemonevolution.x10.mx>\r\n";
if (mail($Email, $Subject, stripslashes($Message), $header)){
echo "An activation e-mail has been sent to ".$Email."! <br>";
} else {
echo "Error sending an activation email.<br>";
}
Yes, all the variables were defined earlier in the PHP code.
I actually tested this registration out. It worked I got the, "An activation email ..." output, but I haven't received an email. Also to let you know, I have waited for over 24 hours, and checked my junk mail.
Oh yes, I did receive an email when I sent it to my Chopin email address, (The email used to send the message).
Example: raazi@pokemonevolution.x10.mx
But got nothing when i sent it to my hotmail account.
Thank you, for taking the time to read.
Last edited: