in reply to presentation of email

Mail::Sender (as well as most email modules) allows you to use a name with the email address in brackets. You aren't faking an address so don't use fake_from.

my %mail; $mail{'to'} = $emails; $mail{'file'} = 'test.txt'; $mail{'subject'} = 'test'; $mail{'msg'} = "Please work"; my $sender = new Mail::Sender{ smpt=> 'mailhost', from=> 'Joe Shmoe <joe@pleasework.com>', }; $sender-> MailFile(\%mail);

Replies are listed 'Best First'.
Re: Re: presentation of email
by tbone (Beadle) on Mar 18, 2003 at 16:39 UTC
    Thanks for the quick response. I don't want the <joe@pleasework.com> to show up. Is it possible to prevent it from appearing.

      I don't want the <joe@pleasework.com> to show up.

      Basically, this is IMHO not up to you, but the recipients choice.
      A lot of mail-clients won't show the address-part if a name is given along with it, but you shouldn't try to enforce this behaviour, even if it is possible.

      regards,
      tomte