in reply to Variables and Strings

'From' =>'$defaults{Mail}{From}||"$ENV{USER}"', ### becomes From => $defaults{Mail}{From} || $ENV{USER},
If that doesn't work, reply to this post and I'll give you some different ideas.

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.

Replies are listed 'Best First'.
Re: Re: Variables and Strings
by global (Novice) on Jul 23, 2003 at 14:45 UTC
    The problem with just having

    $defaults{Mail}{From} || $ENV{USER}

    is that when it is converted to:

    "Test User" <test@test.com>

    unless it is enclosed with ' ' MIME::Lite tries and sends and email to Test User which doesn't work. :-)

    The "Test User" <test@test.com> really needed to come through to MIME::Lite as '"Test User" <test@test.com>'

    Thanks all for the suggestions.