Re: Simple perl script send email

2004-05-03 Thread Jeff Lowrey
At 03:53 AM 5/3/2004, Peter N Lewis wrote: I wanted to switch from using sendmail in a pipe to using Mail::Sender, but I found that Mail::Sender seems to take a lot longer to send a message - not so much an issue for sending out status messages, but a serious problem for sending out newsletters

Re: Simple perl script send email

2004-05-03 Thread Peter N Lewis
\Mail is an incredibly complex thing, combine that with trying to handle IPC issues when shelling out, then you are reinventing a wheel that should definitely not be re-invented. Net::SMTP is an example, though probably a more difficult one, there are lots, http://search.cpan.org/modlist/Mail

Re: Simple perl script send email

2004-04-25 Thread John Delacour
At 2:28 am -0700 25/4/04, Mark Wheeler wrote: >I just installed 10.3 and am trying to get a cron job to fire off a perl script which >will send an email saying the cron job was completed. I recommend you get SendMail.pm, though there are other options:

Re: Simple perl script send email

2004-04-25 Thread Mark Wheeler
I've been using MIME::Lite for a couple of years, now. I'll just use that one. It's quite friendly to work with. I'll give that a try and see what goes. Thanks again, Mark On Apr 25, 2004, at 3:19 PM, Wiggins d'Anconia wrote: Mark Wheeler wrote: Thanks. I'll give it a try. That makes sense.

Re: Simple perl script send email

2004-04-25 Thread Wiggins d'Anconia
Mark Wheeler wrote: Thanks. I'll give it a try. That makes sense. When you are talking about mail handling Perl mod, you are talking about NET::SMTP or something like that, right? Also, why would you not want to use mail directly? Mail is an incredibly complex thing, combine that with trying to

Re: Simple perl script send email

2004-04-25 Thread Mark Wheeler
Thanks. I'll give it a try. That makes sense. When you are talking about mail handling Perl mod, you are talking about NET::SMTP or something like that, right? Also, why would you not want to use mail directly? Thanks, Mark On Apr 25, 2004, at 2:53 PM, Wiggins d'Anconia wrote: Mark Wheeler w

Re: Simple perl script send email

2004-04-25 Thread Wiggins d'Anconia
Mark Wheeler wrote: Hi, I just installed 10.3 and am trying to get a cron job to fire off a perl script which will send an email saying the cron job was completed. crontab listing * * * * * /Users/blah/Library/Scripts/test.pl Here is the script: test.pl --

Re: Simple perl script send email

2004-04-25 Thread Mark Wheeler
Ok, that's a little new for me. What I basically need to do is run a back up of some files on an internal network, then email myself saying everything went great. The files (databases) are on a PC and I'm going to back them up on my Mac. That's the rub. I was going to do it in Perl, because tha

Re: Simple perl script send email

2004-04-25 Thread Jerry LeVan
My daily.local file looks like: /usr/bin/mail -s Crontab jerry < No need for perl if you have Postfix set up :) Cron runs the daily.local file if it exists in periodic daily I requeue a wakeup request for the next morning... see http://homepage.mac.com/levanj/Cocoa for a way to make sure your cron

Re: Simple perl script send email

2004-04-25 Thread Bill Stephenson
Just curious, did you run the crontab command? I know I sometimes just forget the simple stuff... Kindest Regards, Bill Stephenson On Apr 25, 2004, at 4:28 AM, Mark Wheeler wrote: Hi, I just installed 10.3 and am trying to get a cron job to fire off a perl script which will send an email say

Simple perl script send email

2004-04-25 Thread Mark Wheeler
Hi, I just installed 10.3 and am trying to get a cron job to fire off a perl script which will send an email saying the cron job was completed. crontab listing * * * * * /Users/blah/Library/Scripts/test.pl Here is the script: test.pl #!/usr/bin