Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: adding multiple attachments to email

by perlnoobster (Sexton)
on Apr 30, 2013 at 08:52 UTC ( #1031360=note: print w/replies, xml ) Need Help??


in reply to Re: adding multiple attachments to email
in thread adding multiple attachments to email

Thank you Aitap for your help, I have updated the code however I recieve the following error: syntax error at test_email.pl line 503, near "msg" this is the code i have used :
send_email(); sub send_email { my $sender=new Mail::Sender({from =>$email_sender, fake_from =>$email_sender,smtp => 'mail.test.com'}); $sender->MailFile({to => $email_recipient, subject => $email_subject, file=> [ $outfile, $file1 ] msg => $email_body}); }
edit - i added a comma after the file=> [ $outfile, $file1 ], and the syntax error is not showing anymore, however I'm not receiving any emails either ?!

Replies are listed 'Best First'.
Re^3: adding multiple attachments to email
by aitap (Deacon) on Apr 30, 2013 at 09:03 UTC

    Sorry for the comma - I edited my message shortly after posting it and noticing the comma's absence.

    Try adding 'debug' parameter to the constructor to debug your messages.

Re^3: adding multiple attachments to email
by perlnoobster (Sexton) on Apr 30, 2013 at 09:01 UTC
    UPDATE- It works! just a bit slow in generating the email though:) Thank you!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1031360]
help
Chatterbox?
[choroba]: the problems start when you want to "skip a level", i.e. the arrays for all the keys
[LanX]: what are temps?
[moritz]: oh, the question was about creation, not indexing
[thepkd]: temporary variables
[moritz]: [ { a => [ { b => 1 } ] } ]
[choroba]: dereference ne creation
[choroba]: at least in my lingo
[moritz]: .oO( oh temps, oh moritz )
[GotToBTru]: you are correct, choroba, but of course there is no point in doing one without the other
[GotToBTru]: un less you're working on write-only memory

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (13)
As of 2016-12-06 13:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (104 votes). Check out past polls.