NAUbackup / VmBackup

XenServer simple backup script
228 stars 61 forks source link

email send is not working #8

Closed petrsvacina closed 9 years ago

petrsvacina commented 9 years ago

Hi, I Hope I configured sending mail correctly, but not working for me:

sendemail() takes exactly 3 arguments (1 given) 2015-02-23-(12:03:25) - *ERROR EXCEPTION - exceptions.TypeError 2015-02-23-(12:03:25) - _*ERROR NOTE: see VmBackup output for details Traceback (most recent call last): File "VmBackup.py", line 707, in ? main(session) File "VmBackup.py", line 368, in main send_email("%s 'Success VmBackup.py' %s" % (MAIL_TO_ADDR, STATUS_LOG)) TypeError: send_email() takes exactly 3 arguments (1 given)

NAUbackup commented 9 years ago

Sorry for the response delay, I assume you resolved this. If not post back with additional info.

Bendolfc commented 9 years ago

I am having the same issue, have filled in the 3 variables and removed the comments in the appropriate places, can't see anything obvious as to why it isn't working.

sylk4 commented 9 years ago

I had exact the same issue. I solved it with a patch: https://github.com/codedmind/VmBackup/commit/0d6960e84adafe83ab16346095d94994d3237009

Bendolfc commented 9 years ago

Thanks, that worked, saved me a bit of time figuring out what was wrong.