Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 25, 2012, 12:28:20 PM

Pages: [1]   Go Down
  Print  
Author Topic: Need a mail command for cron job sending attachment files  (Read 1092 times)
Seaman
Space Explorer
***
Offline Offline

Posts: 7


« on: December 05, 2007, 07:34:37 AM »

I have a script which use "mutt" to send mail with file attached.

But our server dosn't have mutt or nail command

I want to know how can I send mail with attach file in cron tab.
Logged
MrPhil
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 5220



« Reply #1 on: December 05, 2007, 06:56:51 PM »

A long shot, as I'm not too familiar with its capabilities, but have you checked out PHPlist? It's available under cPanel > Fantastico scripts. I presume this is some sort of mailing list you're trying to do. No idea if PHPlist can handle attachments, but it can throttle email sends to a prescribed rate. I'm pretty sure I've seen discussions of running it from the command line (i.e., cron). If PHPlist doesn't do the job for you, could you share with us the outlines of what you're trying to do? How many identical emails, how often to send, how often they change content, etc.? Maybe someone could get an idea from that information.
Logged

Visit My Site

E-mail Me
  
-= From the ashes shall rise a sooty tern =-
Seaman
Space Explorer
***
Offline Offline

Posts: 7


« Reply #2 on: December 05, 2007, 07:32:12 PM »

http://sourceforge.net/project/showfiles.php?group_id=101066

   BACKUPFILES=`echo "$BACKUPFILES" | sed -e "s# # -a #g"`   #enable multiple attachments
      mutt -s "$ERRORNOTE MySQL Backup Log and SQL Files for $HOST - $DATE" $BACKUPFILES $MAILADDR < $LOGFILE      #send via mutt

http://en.wikipedia.org/wiki/Comparison_of_e-mail_clients
I think mutt is more like a basic way in comparison with php.
Logged
coolliam
Newbie
*
Offline Offline

Posts: 2


« Reply #3 on: July 31, 2011, 11:14:44 PM »

Hi,

For benefit of viewers, I'm searching for same issue, I found a solution here:
http://www.lunarforums.com/web_hosting_tutorials_faqs_and_resources/site_and_mysql_backups_via_cron-t22118.0.html

Then schedule in cron using command: /usr/bin/php /home/xxx/backup/mybackup.php

Hope it helps.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: