inform me of non received emails
Posted: Thu Nov 10, 2005 5:34 am
I am using the mail() function to send out emails. A few of the addresses that I am sending to may no longer exist. But, when I try sending to a KNOWN non-existant email address, I dont get anything telling me that the sending process failed. Is there any way that I can get an email saying when a send has failed? Whenever I send an email from a normal email site (like Hotmail), to an address that doesnt exist, I get a message saying that it did not go through.
here's my code:
After sending 100 emails, I would like to know which ones went through, and which did not
here's my code:
Code: Select all
<?php
$to = "someone@somewhere.com";
$subject = "Just a test";
$message = "Hi there";
$additional_headers = 'From: me@mysite.com' . "\r\n" .
'Reply-To: me@mysite.com' . "\r\n";
mail($to, $subject, $message, $additional_headers);
?>