Page 1 of 1

inform me of non received emails

Posted: Thu Nov 10, 2005 5:34 am
by paladaxar
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:

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);
 
?>
After sending 100 emails, I would like to know which ones went through, and which did not

Posted: Thu Nov 10, 2005 6:21 am
by blacksnday
Your Server Admin would be able to pipe all
failed mails from your domain to be sent to your email address,

Posted: Thu Nov 10, 2005 6:39 am
by paladaxar
the failed emails are not coming back. I have sent to known bad email addresses and I have gotten nothing back.