J
John
I am using the following code to send email from a Perl script:
open(MAIL,"|/usr/sbin/sendmail -t") || return 0;
select (MAIL);
print "To: mycustomer\@home.com\n";
print "From: me\@mybiz.biz\n";
print "Return-Path: me\@mybiz.biz\n";
print "Subject: Hello world\n";
print "\n";
print "It works!\n";
close(MAIL);
select (STDOUT);
The code works just fine provided the From address is OK.
If the address is invalid (but lexically OK) I want to get a "bounced email
receiver is no longer" etc. note but I get nothing.
The Return path does not seem to help.
What should I do to get info what email bounced or were invalid?
open(MAIL,"|/usr/sbin/sendmail -t") || return 0;
select (MAIL);
print "To: mycustomer\@home.com\n";
print "From: me\@mybiz.biz\n";
print "Return-Path: me\@mybiz.biz\n";
print "Subject: Hello world\n";
print "\n";
print "It works!\n";
close(MAIL);
select (STDOUT);
The code works just fine provided the From address is OK.
If the address is invalid (but lexically OK) I want to get a "bounced email
receiver is no longer" etc. note but I get nothing.
The Return path does not seem to help.
What should I do to get info what email bounced or were invalid?