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!

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.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice