Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
this is the code that generates the mail:
the value of $emessage contains the value of $efrom and displays correctly as whatever was entered into the email field, but the actual header content for the "Reply-To" field has the domain of our webserver tacked to the end, so it'll look like "parent@hotmail.com.hivelocity.net" whereas $efrom = "parent@hotmail.com". this also happens if i use $efrom in the "From:" field of the email header.open(MAIL, "|/usr/sbin/sendmail -oi -t") or die "Can't open sendmail: +$!\n"; print MAIL "From: no-reply <webmaster\@domain.org\n"; print MAIL "Reply-To: $efrom\n"; print MAIL "To: recipient\@mailserver.com\n"; print MAIL "Subject: $esubject\n\n"; print MAIL $emessage; close(MAIL) or warn "sendmail didn't close nicely";
any ideas how i can get the reply-to to get sent correctly? what am i doing wrong?? i've used a similar script for many of my other forms, without any difficulty...
TIA, janaki
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: domain getting tacked onto email address??
by GrandFather (Saint) on Jul 26, 2006 at 22:03 UTC | |
|
Re: domain getting tacked onto email address??
by Hue-Bond (Priest) on Jul 26, 2006 at 21:40 UTC | |
by Anonymous Monk on Jul 26, 2006 at 21:51 UTC | |
|
Re: domain getting tacked onto email address??
by traveler (Parson) on Jul 26, 2006 at 22:02 UTC |