Jump to content

Archived

This topic is now archived and is closed to further replies.

jabapyth

Mail problems.

Recommended Posts

I have tried:
<?php
mail('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?

Share this post


Link to post
Share on other sites
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.

Cheers
Matt

Share this post


Link to post
Share on other sites
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...

Share this post


Link to post
Share on other sites

×

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.