I'm wondering if there is a way where you can show the person's REAL name rather than just an email ID when sending an email from Perl. So here's a snip of what I have now...
my $from_addr = "[EMAIL PROTECTED]";
open (MAIL, "|/usr/lib/sendmail -t"); print MAIL "To: $to_addr\n", "From: $from_addr\n", "Cc: $cc\n", "Subject: $email_subj$client_name\n\n"; print MAIL "$email_body"; close (MAIL);
So doing it this way when the recipients get the email it will say just "[EMAIL PROTECTED]" in the From field in their email client. Is there a way to have it show "Joe User" in the From on their client then when they hit reply it would go to the right person that sent it? Would adding in a "Reply-To" field work? Something like this..
my $from_addr = "Joe User"; my $reply_to = "[EMAIL PROTECTED]";
open (MAIL, "|/usr/lib/sendmail -t"); print MAIL "To: $to_addr\n", "From: $from_addr\n", "Reply-To: $reply_to\n", "Cc: $cc\n", "Subject: $email_subj$client_name\n\n"; print MAIL "$email_body"; close (MAIL);
Thanks,
-Chris
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>