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

    Joined:
    Oct 3, 2007
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

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

    It is something like this

    Code:
    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.
     
Loading...

Share This Page