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 :[email protected]";
$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
https://forums.phpfreaks.com/topic/52194-solved-another-mail-problem/
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!

 

 

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.