Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perl SendMail Bounce Emails Question

Status
Not open for further replies.

WebStuck

Programmer
Apr 12, 2003
79
US
Hi,

I use a perl script to send out a newsletter. However, I never receive any of the bounced emails resulting from sending my newsletter to invalid addresses. Is there a way that I could change my script so that I do receive these bounced email messages?

Kind Regards,
Ben Cunningham
 
I had tried the Reply-To header before and I just now tried the Return-path header. However, neither seems to cause me to receive the bounced back emails from sending to invalid email addresses.

Kind Regards,
Ben Cunningham
 
You're using sendmail, whats the rest of your configuration? I don't think the bounce backs are a dependency of your script, but your infrastructure.


Paul
 
I get bounce backs if I email an invalid address without going through my newsletter script. My configuration is:

open (MAIL, "|$mail_program -t -oem") || die "Can't open $mail_program!\n";
if ($html eq "1") {
print MAIL "Content-type:text/html\n";
}
print MAIL "From: $your_email\n";
print MAIL "Reply-To: $your_email\n";
print MAIL "To: $member\n";
print MAIL "Subject: $in{'subject'}\n\n";
print MAIL "$in{'message'}\n\n";

$your_email = my emailing address

Kind Regards,
Ben Cunningham
 
Does your newsletter application uses .procmailrc or .forward files to listen to incomming emails? In that case that's where you need to install a log to monitor your traffic.
 
I don't believe the script I am using uses .procmailrc or .forward files to listen to incomming emails?

Kind Regards,
Ben Cunningham
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top