Jump to content

Mail problems.


jabapyth

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?
Link to comment
Share on other sites

  • 1 year later...
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
Link to comment
Share on other sites

  • 6 months later...
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...
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.