How would you check that?
If you do that through php.ini then it is already done (or atleast how my coworker interpreted it) but there are still no emails being sent.
Code: Select all
<?
$to = "blah@blah.com";
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";
if (mail($to, $subject, $body)) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}
$to = "blah1@blah.com";
$subject = "TESTING";
$msg = "Now!";
mail("$to", "$subject", "$msg");
if (mail("$to", "$subject", "$msg")) {
echo("<p>finished!</p>");
} else {
echo("<p>Message delivery failed...again</p>");
}
$to = "blah2@blah.com";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
mail($to,$subject,$message);
if (mail($to,$subject,$message)) {
echo("<p> Mail Sent!</p>");
} else {
echo("<p>Message delivery failed...again...again</p>");
}
?>
<a href="mailto:blah3@blah.com?body=The message's first paragraph.%0A%0aSecond paragraph.%0A%0AThird Paragraph.">BLAH3@BLAH.COM</a>
<?
$adminemail = "blahadmin@blah.com";
$subj = "Hello";
$msg = "Goodbye";
echo "$adminemail";
mail($adminemail, $subj, $msg, "From: $name <$from>\r\nReply-to: $from\r\nContent-type: text/html; charset=iso-8859-1\r\n");
if (mail($adminemail, $subj, $msg, "From: $name <$from>\r\nReply-to: $from\r\nContent-type: text/html; charset=iso-8859-1\r\n")) {
echo("<p> Sent to Blah</p>");
} else {
echo("<p>Message delivery failed...again...again...WOW</p>");
}
?>
Those are some different variations (if variations at all) i have used and all of them echo back SENT and not one is recieved! Any advice i have a feeling it is a little slipup i cant see so... please any help would be nice!
P.S. the mailto: works but dont need it!