hiker Posted May 20, 2007 Share Posted May 20, 2007 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 Quote Link to comment Share on other sites More sharing options...
chigley Posted May 20, 2007 Share Posted May 20, 2007 What server are you running on? You may not have SMTP available. Quote Link to comment Share on other sites More sharing options...
hiker Posted May 20, 2007 Author Share Posted May 20, 2007 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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.