Does anyone know how to return emails to the sender if the email addresses are incorrect?
I have a newsletter script that includes:
mail("$Email", "$Subject", "$MessageStr", "From: $FromEmail\r\nReply-To: $FromEmail\r\nReturn-Path: $FromEmail"
;
in a loop, where the values are pulled from a form and sent to subscribers. The emails are going out, but any invalid or old email addresses are not bouncing back to the $FromEmail address. I thought that's what Return-Path did. Any ideas where the invalid emails are going, and how to get the bad email addresses?
Thanks,
Susan
I have a newsletter script that includes:
mail("$Email", "$Subject", "$MessageStr", "From: $FromEmail\r\nReply-To: $FromEmail\r\nReturn-Path: $FromEmail"
in a loop, where the values are pulled from a form and sent to subscribers. The emails are going out, but any invalid or old email addresses are not bouncing back to the $FromEmail address. I thought that's what Return-Path did. Any ideas where the invalid emails are going, and how to get the bad email addresses?
Thanks,
Susan