jabapyth Posted March 25, 2006 Share Posted March 25, 2006 I have tried:<?phpmail('my@email.net', 'Subject', 'Your message here.', "To: The Receiver <recipient@some.net>\n" . "From: The Sender <sender@some.net>\n")?>and I don't get an error, but I also don't recieve the email. What am I doing wrong? Quote Link to comment Share on other sites More sharing options...
brissy_matty Posted June 1, 2007 Share Posted June 1, 2007 example below:[code]$subject = "New Password For $username"; $message = "Hi $username,\n we have reset your password. \n New Password: $random_password \n $siteurl/login.php \n Thanks! $admin_email \n This is an automated message system, please do not reply!"; mail($email_address,$subject,$message,"From:$admin_email "); echo "Your password has been sent! Please check your email!<br />";[/code]obviously change the message etc to suit yourself.CheersMatt Quote Link to comment Share on other sites More sharing options...
fluteflute Posted June 1, 2007 Share Posted June 1, 2007 Also be aware most free hosts disable the mail function. Quote Link to comment Share on other sites More sharing options...
fluteflute Posted June 1, 2007 Share Posted June 1, 2007 Oh and I forgot error messages might be turned off. Quote Link to comment Share on other sites More sharing options...
updwebmaster Posted December 18, 2007 Share Posted December 18, 2007 ok I'm using the code for a different reason, but here's mine:[code]<?php$email = $_POST["Email"];$to = 'uberpilotdudes@bellsouth.net, ' . $_POST["Email"];$subject = 'Application for Joining';$from = 'From: ' . $email;$date = date(n/j/y g:i:s e)$text = 'Submission: ' . $date . '<br/>Name: ' . $_POST["Name"] . '<br/>Tags: ' . $_POST["Tags"] . '<br/>E-mail: ' . $_POST["Email"] . '<br/>Date: ' . $_POST["Date"] . '<br/>Other E-mails: ' . $_POST["other_emails"]mail($to,$subject,$text);?>[/code]The page won't show up when I submit the form. It just shows up white... 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.