Jump to content

[SOLVED] another mail() problem--


hiker

Recommended Posts

ok... i'm losing what little mind i have over this-- this is one of those things i've done a zillion times, but now it won't work...

 

i'm simply trying to format and send an email... all the variables such as name and user email are there (echo'ed them to the screen to be sure!).... the "from" domain is the server i'm running the script on, and for testing purposes, i'm sending this to my own email....

 

the script runs without error, and the mail function returns 'true'.... but no mail arrives!

 

the commented out line is what i usually use in scripts, but below that i've simplifed it for debugging....

 

i cut/pasted this whole thing from previous scripts i've written that worked fine....

 

$msg = "Your password has been sent to your email address.";
$ToName = $fname." ".$lname;
$ToEmail = $user_email;
$FromName = "mydomain";
$FromEmail = "From :webmaster@mydomain.com";
$ToSubject = "Your Password";

$Message = "A request was made for your login information.\r\n\r\nYour username is: $user_name\r\nYour password is: $user_pass\r\n\r\nPlease make a note of this information.\r\n\r\nThank you.\r\n\n";

//	$eml = mail($ToName." <".$ToEmail.">",$ToSubject, $Message, "From: ".$FromName." <".$FromEmail.">");

$eml = mail($ToEmail,"Test", "a message",$FromEmail);

 

any ideas, even crazy ones, would be appreciated...

 

TIA

Link to comment
Share on other sites

it's on a linux server....

 

but i just jumped back to mark this as 'solved'... at least maybe...

 

i just received one of my test emails, sent 4.5 hours ago!  so apparently, the problem is something with the server....

 

it would certainly explain why my code that has 'always' worked suddenly quit...

 

thanks for your inquiry of help!

 

 

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.