Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Using MIME::Lite

by lachoy (Parson)
on Jul 15, 2002 at 21:07 UTC ( #181920=note: print w/ replies, xml ) Need Help??


in reply to Using MIME::Lite

A tip: generate some information in the error log so you can tell what's going on. For instance, you might add a message to the error log using warn with something like:

foreach my $line(@lines){ warn "Trying to attach file [$line]"; $msg->attach(Type =>'image/gif', Path =>"/u619/be/bon/uploads/$line", Filename =>"$line", Disposition => 'attachment' ); } $msg->send;

If you did this, you might find that your filename has a newline in it, which may prevent MIME::Lite from locating it properly. Try adding the following line after you close the file:

chomp @lines;

The following example of MIME::Lite usage may also be helpful: RE: sending email

Chris
M-x auto-bs-mode


Comment on Re: Using MIME::Lite
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://181920]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2015-07-30 06:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (270 votes), past polls