Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cron job problem with attachments

Discussion in 'General Discussion' started by Nameslot, Dec 13, 2007.

  1. Nameslot

    Nameslot Member

    Oct 3, 2007
    Likes Received:
    Trophy Points:

    I have made one cronjob where it backups the database and send the email

    It is something like this

    mysqldump -ce --user=DATABASEUSERNAME --password=DATABASEPASSWORD  DATABASENAME | gzip | uuencode dbbackup_e.gz | mail EMAILADDRESS
    Now it does sends the email but the file I think is not coming as an attachment in my gmail but it is coming as Binary data right into the email itself.

    Can someone guide me what I am doing wrong. What should be added to above thing so that it would attach the file rather then just dumping the binary itself in the message that is sent.

    Thanking You.

Share This Page