fionbarr has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to use an email address as 'reply-to'. The address is in the form:
address@host.name.com
Both OUTLOOK and YAHOO translate this to address@name.com (i.e. losing the text 'host.'...this does not work for me...is there a way to force this NOT to happen? I have tried a number of permutations of send mail, from MAIL"::Sendmail to MIME::Lite and various other options which call /usr/sbin/sendmail directly. Thanks

Replies are listed 'Best First'.
Re: reply-to address being truncated
by NetWallah (Canon) on Oct 19, 2010 at 17:13 UTC
    You are probably using the email like this:
    $email="address@host.name.com" ;
    In this case, perl interprets "@host" as access to an array, which you probably don't have, so it is empty.

    Using strict and warnings would help in this case.

    To resolve, use single-quotes (perl does not interpolate the contents).

         Syntactic sugar causes cancer of the semicolon.        --Alan Perlis

      my mistake...my code actually looks like:
      $email = "address\@host.name.com";
      the text "host.name" is removed and I get 'address@name.com'.
        I don't understand how that could fail.

        Could you post an actual code snipped, and/or run debug and examine what it actually contains ?

             Syntactic sugar causes cancer of the semicolon.        --Alan Perlis

Re: reply-to address being truncated
by locked_user sundialsvc4 (Abbot) on Oct 19, 2010 at 18:21 UTC

    :-/

    Will everybody else who has been “bitten” by this one, please raise their hand?