For Programmers: Free Programming Magazines  


Home > Archive > PERL Miscellaneous > March 2004 > Re: Help: Using the Reply-To: header on sending email









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Help: Using the Reply-To: header on sending email
Gunnar Hjalmarsson

2004-03-28, 10:22 pm

Rethaew wrote:
> I am using perl to send out email messages. I am trying to use the
> "Reply- To:" email header on the message, but it is not coming
> through on the received message. I am running active perl 5.6 on
> Windows2k.
>
> Here is a summary of the code I am trying to use. It looks like
> Mail:Sendmail doesn't support the Reply-To: field. Any suggestions
> are welcome.
>
> use Mail::Sendmail;
> %mail = (
> To => "$recipient",
> From => "$sender",
> X-Reply-To => "$reply_to",


X-Reply-To is not the same as Reply-To. Try saying:

Reply-To => "$reply_to",

instead.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

Michele Dondi

2004-03-28, 10:22 pm

On Sun, 28 Mar 2004 09:27:22 +0200, Gunnar Hjalmarsson
<noreply@gunnar.cc> wrote:

>X-Reply-To is not the same as Reply-To. Try saying:
>
> Reply-To => "$reply_to",


or (as is always worth reminding!)

Reply-To => $reply_to,


Michele
--
you'll see that it shouldn't be so. AND, the writting as usuall is
fantastic incompetent. To illustrate, i quote:
- Xah Lee trolling on clpmisc,
"perl bug File::Basename and Perl's nature"
Anno Siegel

2004-03-28, 10:22 pm

Michele Dondi <bik.mido@tiscalinet.it> wrote in comp.lang.perl.misc:
> On Sun, 28 Mar 2004 09:27:22 +0200, Gunnar Hjalmarsson
> <noreply@gunnar.cc> wrote:
>
>
> or (as is always worth reminding!)
>
> Reply-To => $reply_to,


....but quotes are needed on the other side of "=>". "Reply-To" is not a
valid identifier, so

'Reply-To' => $reply_to,

Anno
Gunnar Hjalmarsson

2004-03-28, 10:22 pm

Anno Siegel wrote:
> Michele Dondi wrote:
>
> ...but quotes are needed on the other side of "=>".
> "Reply-To" is not a valid identifier, so
>
> 'Reply-To' => $reply_to,


Time to go to sleep, I suppose. :(

Thanks!

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

Michele Dondi

2004-03-29, 8:35 am

On 28 Mar 2004 21:07:59 GMT, anno4000@lublin.zrz.tu-berlin.de (Anno
Siegel) wrote:

>
>...but quotes are needed on the other side of "=>". "Reply-To" is not a
>valid identifier, so


Hehe, I didn't notice that! Fortunately I do quote keys almost always
anyway...


Michele
--
you'll see that it shouldn't be so. AND, the writting as usuall is
fantastic incompetent. To illustrate, i quote:
- Xah Lee trolling on clpmisc,
"perl bug File::Basename and Perl's nature"
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com