phppete
05-13-2006, 06:03 AM
When sending a database backup by email for example, which would be the preferred method:
1) Using something like PHPMailer and emailing via the typical PHP route
2) Shell script: uuencode 01-05-2006_forum.sql.gz 01-05-2006_forum.sql.gz | mail info@emailaddress.com
I have to confess I only just found out how easy it is to send email attachments via a shell script, assuming there isnt anything I have missed, this would seem like a far better alternative to using PHP. I have numerous DB backup PHP scripts running via cronjobs on many FQ servers for clients. I would like to redo these avoiding PHP and just using a shell script, less code, easier to maintain. Is there any reason why I shouldn't do this?
Thanks
1) Using something like PHPMailer and emailing via the typical PHP route
2) Shell script: uuencode 01-05-2006_forum.sql.gz 01-05-2006_forum.sql.gz | mail info@emailaddress.com
I have to confess I only just found out how easy it is to send email attachments via a shell script, assuming there isnt anything I have missed, this would seem like a far better alternative to using PHP. I have numerous DB backup PHP scripts running via cronjobs on many FQ servers for clients. I would like to redo these avoiding PHP and just using a shell script, less code, easier to maintain. Is there any reason why I shouldn't do this?
Thanks