madison.sacd has asked for the wisdom of the Perl Monks concerning the following question:
my @parts = ( Email::MIME->create( attributes => { content_type => 'application/pdf', encoding => 'quoted-printable', name => 'document.pdf', }, body => io( 'document.pdf' )->all, ), Email::MIME->create( attributes => { content_type => "text/plain", disposition => "attachment", charset => "US-ASCII", }, body => "Hello there!", ), ); my $r = $c->email( header => [ From => 's4@student.tku.edu.au', To => 's3@student.tku.edu.au', Subject => 'Hello!' ], parts => [ @parts ], );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: email pdf file - file damaged
by Corion (Patriarch) on May 07, 2007 at 07:00 UTC | |
by madison.sacd (Novice) on May 07, 2007 at 07:29 UTC | |
by Corion (Patriarch) on May 07, 2007 at 07:34 UTC | |
by madison.sacd (Novice) on May 07, 2007 at 07:55 UTC | |
by ultranerds (Hermit) on Mar 29, 2019 at 11:55 UTC |