Jump to content

mail function with php5


jwk811

Recommended Posts

this code works on one site with php4

 $subject = "Welcome to SportQuadChat"; 
$message = "Click this link or copy and paste the url into your address bar to activate your account: http://www.sportquadchat.com/members/process.php?action=activate&code=" . $code;
$from = "support@sportquadchat.com"; 
$headers = "From: $from"; 
mail($email,$subject,$message,$headers);

 

i used the same script on a different website with php5 and it no longer works.. i wont recieve an email pleas help

Link to comment
Share on other sites

nevermind it worked when i just did the mail function alone. dunno why its not working with the added variables and stuff. ill figure it out

Could be as simple as an undefined variable or an incorrect call to the function. And to add to Thorpe's question, where is $code being defined?

Link to comment
Share on other sites

Ah.. the last time this happened to me was because the new site's DNS settings were pointing to the hosting service's default IP instead of my IP address. Could be you reset the DNS to point to your IP address and it just took a few hours for that to be updated by the hosting service.

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.