Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Respected Monks,
I've been trying to use Email::Simple module and stuff works fine....but attachments don't work. Documentation does not indicate that the module has an attachment option, but I tried it anyways like so.
my $new_email = Email::Simple->create( header => [ To => 'to@email.com', From => 'from@email.com', Subject => 'Test Message.', ], body => "This is a simple test Message sent using my script.\ \nScript Location: $abs_path\ \nServer name: $ENV{'COMPUTERNAME'}\n", attachment => "README.md", );
I get the email, but not the attachment.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Does Email::Simple have "attachment" option?
by tobyink (Canon) on Aug 30, 2020 at 20:56 UTC | |
by Anonymous Monk on Aug 30, 2020 at 21:44 UTC | |
by tobyink (Canon) on Aug 31, 2020 at 07:30 UTC | |
by Corion (Patriarch) on Aug 31, 2020 at 05:18 UTC |