Jump to content

i have issues, email


Recommended Posts

Hello !
I am a so called noobie in php scripting so I will appreciate any help I get. I am using a verry simple php script to send emails but the emails arrive in the junk folder. I know that its not from my smtp. I used my ISP smtp, please HELP.
Thanks.

<?php
$to = "[email protected]";
$subject = "ineedhelp.";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
$message = "<html><body>";
$message .= "<h1><b>It arrives in junk!</b></h1>";
$message .= "</body></html>";

if ( mail($to,$subject,$message,$headers) ) {
echo "The email has been sent!";
} else {
echo "The email has failed!";
}
?>
Link to comment
https://forums.phpfreaks.com/topic/7552-i-have-issues-email/
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.