inform me of non received emails

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
paladaxar
Forum Commoner
Posts: 85
Joined: Fri Jun 18, 2004 11:50 pm

inform me of non received emails

Post 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
User avatar
blacksnday
Forum Contributor
Posts: 252
Joined: Sat Jul 30, 2005 6:11 am
Location: bfe Ohio :(

Post by blacksnday »

Your Server Admin would be able to pipe all
failed mails from your domain to be sent to your email address,
paladaxar
Forum Commoner
Posts: 85
Joined: Fri Jun 18, 2004 11:50 pm

Post by paladaxar »

the failed emails are not coming back. I have sent to known bad email addresses and I have gotten nothing back.
Post Reply