in reply to Can't locate objet method "new" via package "Mail::SendMail"
I am aware that one of the first lines of documentation for this module the author discourages using MIME::Lite. I have also used MIME::Entity in its place. Hope this helps..my $mail = MIME::Lite->new( From=> 'me@me.com, To=> 'someone@cool.com', Subject=> "Hello email ", Type=>'multipart/mixed' ); $mail->attach( Type => 'application/x-tar', Encoding => 'base64', Path => 'C:\path\to\file.tar', Filename => "file.tar" ); MIME::Lite->send('smtp','server.smtp.com',Debug=>0); $mail->send;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Can't locate objet method "new" via package "Mail::SendMail"
by karger (Initiate) on Jul 26, 2013 at 19:42 UTC | |
by poj (Abbot) on Jul 26, 2013 at 19:45 UTC |