|
Posted by Peter J. Holzer on July 16, 2007, 9:51 am
Please log in for more thread options
> I am trying to use the nice Email::Send (and friends) module and have
> a problem creating the 'envelope from' as documented at
>
http://search.cpan.org/dist/Email-Send/lib/Email/Send/SMTP.pm#ENVELOPE_GENERATION
>
><citation start>
> The envelope sender and recipients are, by default, generated by
> looking at the From, To, Cc, and Bcc headers. This behavior can be
> modified by replacing the get_env_sender and get_env_recipients
> methods, both of which receive the Email::Simple object and their only
> parameter, and return email addresses.
><citation end>
>
> What does this mean?
It probably means you have to define a subclass of Email::Send::SMTP which
overrides these methods.
> I tried to use 'get_env_recipients' as a
> constructor parameter (e.g. "my $mailer = Email::Send->new({mailer =>
> 'SMTP', get_env_sender => \&my_get_env_sender});") and MANY more
> things, but obviously this is wrong....
I see no indication in the documentation of Email::Send or
Email::Send::SMTP that it recognizes a property with the name
get_env_sender.
hp
--
_ | Peter J. Holzer | I know I'd be respectful of a pirate
|_|_) | Sysadmin WSR | with an emu on his shoulder.
| | | hjp@hjp.at |
__/ | http://www.hjp.at/ | -- Sam in "Freefall"
|