Jump to content

mail() help


RaythMistwalker

Recommended Posts

if(isset($_POST['send']))  {
    $to = "[email protected]";
    $subject = $_POST['subject'];
    $name_field = $_POST['name'];
    $email_field = $_POST['email'];
    $message = $_POST['message'];

    $body = "From: $name_field\n E-Mail: $email_field\n Message:\n $message";
     
    mail($to, $subject, $body);
    $error = 'Message Sent.';

}

I'm getting no errors and it is returning the Message Sent message. I'm also not getting the email.

Link to comment
https://forums.phpfreaks.com/topic/188899-mail-help/
Share on other sites

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.