Jump to content

email script


garydt

Recommended Posts

I've copied an email script from a page where it works to a second page. I'm not recieving test emails from the second page and i can't understand why.

$to = '[email protected]';
echo $to;
//from you the sender.
$from = 'me';

$subject = "from epeople";

$mess = "password is $psw";

$message = $mess;

$headers = "From: $from\r\n" .
        'X-Mailer: PHP/' . phpversion() . "\r\n" .
        "MIME-Version: 1.0\r\n" .
        "Content-Type: text/html; charset=utf-8\r\n" .
        "Content-Transfer-Encoding: 8bit\r\n\r\n";

// send if correct.
if (mail($to, $subject, $message, $headers)) {
echo $psw;
}

Thanks

Link to comment
https://forums.phpfreaks.com/topic/58388-email-script/
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.