vsailas has asked for the wisdom of the Perl Monks concerning the following question:
Is there a way with which I can send email with attachments, with out opening the attachment files. Thanks in advance for any help or Guidance. -Sailaswhile ( read( $file->fh, $buf, 1024 ) ) { $fc .= $buf; } my @parts = ( Email::MIME->create( attributes => { content_type => 'application/multipart', name => 'report.doc', disposition => 'attachment', }, body => $fc, ), Email::MIME->create( attributes => { }, body => 'Hello this is a test!', ), ); $c->email( header => [ To => 'vsailas@gmail.com', Subject => 'A Sample Email for Attachment', ], parts => \@parts, );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Catalyst email with attachments
by zentara (Cardinal) on Oct 05, 2011 at 10:16 UTC | |
by remiah (Hermit) on Oct 05, 2011 at 12:13 UTC |