Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Unable to send the xls attachment file with the Mail::Sender

by mrguy123 (Hermit)
on Nov 21, 2011 at 07:28 UTC ( #939141=note: print w/ replies, xml ) Need Help??


in reply to Unable to send the xls attachment file with the Mail::Sender

Hi there, not sure exactly what your problem is yet, but a common error when running from crontab is that you don't give the full file path. In this case the file is sent to Sendmail from another place, so take a look at where it is coming from.
Another thing that might help you is if you type "mail" in unix. This should give you a numbered list of all the cronjobs, for example:

U 44 root@il-kblwe02.corp Sun Oct 30 12:14 29/1454 "Cron <guyn@il- +kblwe02> /bin/tcsh -c 'source /exlibris/sfx_ver/sfx4_1/guyn/home/.csh +" U 45 root@il-kblwe02.corp Sun Oct 30 12:27 29/1454 "Cron <guyn@il- +kblwe02> /bin/tcsh -c 'source /exlibris/sfx_ver/sfx4_1/guyn/home/.csh +" >N 46 root@il-kblwe02.corp Mon Oct 31 12:27 35/1699 "Cron <guyn@il- +kblwe02> /bin/tcsh -c 'source /exlibris/sfx_ver/sfx4_1/guyn/home/.csh +" N 47 root@il-kblwe02.corp Tue Nov 1 12:27 35/1696 "Cron <guyn@il- +kblwe02> /bin/tcsh -c 'source /exlibris/sfx_ver/sfx4_1/guyn/home/.csh +"
By typing the number of the cron job you can get details about it which will help you debug
Good luck!!


Comment on Re: Unable to send the xls attachment file with the Mail::Sender
Download Code
Replies are listed 'Best First'.
Re^2: Unable to send the xls attachment file with the Mail::Sender
by vinoth.ree (Prior) on Nov 21, 2011 at 08:42 UTC

    Actually I am calling a perl program only from the crontab. In that program I have another perl program which will send the mail, for that mail sending program I am giving the full path of the file to be attached with the mail. I am executing the mail sending program using the qx($Cmd).

      Hi, can you maybe print a small standalone program that recreates your bug? It will make it much easier to understand what might be the problem

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (20)
As of 2015-07-31 15:02 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 (278 votes), past polls