Page 1 of 1

[0.5.6] Email notification does not work

Posted: March 31st, 2011, 6:02 pm
by neuk34
Hello,

Could you please help me to correct my email config?
it's in french but I think it's easy to recognize ;)

Thanks a lot

Image

Image

Re: [0.5.6] Email notification does not work

Posted: April 1st, 2011, 1:24 am
by shypike
You're supposed to enter a *folder* name, not a template name.
SABnzbd will send the mail using all of the templates it finds in this folder.

Re: [0.5.6] Email notification does not work

Posted: April 1st, 2011, 4:34 am
by neuk34
OK, Thanks !! but I've got this msg :

Do you know why?
Thx !

Code: Select all

500 Internal Server Error

The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last):
  File "/boot/custom/Sabnzbd/cherrypy/_cprequest.py", line 618, in respond
    cherrypy.response.body = self.handler()
  File "/boot/custom/Sabnzbd/cherrypy/_cpdispatch.py", line 25, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/boot/custom/Sabnzbd/sabnzbd/interface.py", line 2568, in testmail
    str(123*MEBI), pack, 'my_script', 'Line 1\nLine 2\nLine 3\nd\xe8ja vu\n', 0)
  File "/boot/custom/Sabnzbd/sabnzbd/emailer.py", line 172, in endjob
    ret = send(message.respond())
  File "DynamicallyCompiledCheetahTemplate.py", line 105, in respond
NotFound: cannot find 'amount'

Re: [0.5.6] Email notification does not work

Posted: April 1st, 2011, 7:55 am
by shypike
Looks like you used an undefined variable $amount.
Look here for what is supported:
http://wiki.sabnzbd.org/email-templates

Re: [0.5.6] Email notification does not work

Posted: April 2nd, 2011, 9:47 am
by neuk34
Thank you shypike, it works now  !!