Send mail out of a cli-script on FreeNAS 9.10 nightlies

Status
Not open for further replies.

ArgaWoW

Patron
Joined
Jul 4, 2015
Messages
444
Hello,

I am running FreeNAS 9.10 nightlies and have a problem to send a notification e-mail out of a cli-script. In the 9.10 stable train this script works, but now I got the following:
Code:
Traceback (most recent call last):
  File "/etc/find_alias_for_smtplib.py", line 12, in <module>
  from django.utils.translation import ugettext_lazy as _
ImportError: No module named django.utils.translation

If I delete:
Code:
sendmail -t < /var/cover

it works again, so the issue seems to depends on it.

Please, find the script attached.

Would be nice if someone can help to figure out this problem :)

Thanks in advance.
 

Attachments

  • smarttest.rar
    1.3 KB · Views: 201
Last edited by a moderator:
Status
Not open for further replies.
Top