#24 Alternative Email Attachment

closed-accepted
nobody
None
5
2011-10-08
2011-03-24
Anonymous
No

We have just used the script to backup a database however our server did not have mutt installed.

Attached is a small patch to allow an email to be sent with the backup attached using uuencode & mail rather than mutt.

Not all email programs (more likely gmail/hotmail/etc...) like uuencode'd attachments, but it works well with Thunderbird.

I hope this helps.

Discussion


  • Anonymous
    2011-03-24

    For reference this is the line to send the email.

    (${CAT} "${LOGFILE}"; uuencode ${BACKUPFILES} "${BACKUPFILES}") | mail -s "${ERRORNOTE} MySQL Backup Log and SQL Files for ${HOST} - ${DATE}" ${MAILADDR}

     
  • PittaGurneyi
    PittaGurneyi
    2011-10-08

    In the next beta version there is an option to use uuencoded attachments instead of mutt.

     
  • PittaGurneyi
    PittaGurneyi
    2011-10-08

    • status: open --> closed-accepted