Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > use Net::SMTP::Multipart;

Thread Tools

use Net::SMTP::Multipart;

Posts: n/a

I have a problem with this module.

my $filetest = '/tmp/toto.gif';
$smtp->datasend(sprintf( "Attach Message :\n%s\n", $filetest));
$smtp->datasend(" ----------\n\n");



The mail has not attached file...
The FileAttach is in the mail body!

In the received mall:

Attach Message :

Content-Type: ; name="/tmp/toto.gif'"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; =filename="/tmp/toto.gif'"

JSFQUy1BZG9iZS0zLjANCiUlVGl0bGU6ICh0cmF2YXV4X3NhbG xlX2RlX2JhaW5fbW91bC5wZGYp

An Idea?

Thank you

Reply With Quote
Posts: n/a
ecureuil wrote:
> I have a problem with this module.
> The FileAttach is in the mail body!

Hmmm. I've never tried Net::SMTP::Multipart but it looks scarey.

I prefer something like this for sending files via e-mail, which I find
more elegant (and works flawlessly):

use Mail::Sender;
(new Mail::Sender)->MailFile({
'smtp' => '',
'from' => '(E-Mail Removed)',
'to' => '',
'subject' => 'Something for you',
'msg' => 'Here is a file for you.',
'file' => '/path/to/some/file.mp3'
}) || die "Cannot send message: $Mail::Sender::Error\n";


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Could not use ''; file already in use. M K ASP .Net 11 04-09-2008 11:35 AM
where to use CPLD & where to use FPGA? VHDL 6 03-06-2006 07:27 AM
How do I know when to use the Viewstate and when to use the posted data? :-) Simon ASP .Net 1 11-09-2004 02:32 AM
Can I use XPath or something to a remote Mac or Linux box and just query an xml file, not using web services and use encyrption? jake ASP .Net 0 07-06-2004 02:16 PM
Cannot use the profile "default" because it is in use, not. Firefox 1 07-04-2004 03:41 AM