No notification when tickets are assigned

170 views
Skip to first unread message

Amin Zayani

unread,
Jul 1, 2013, 1:47:41 PM7/1/13
to erpnext-dev...@googlegroups.com
Hello,

we use the Support module on a daily basis, but we're experiencing a problem since the very beginning, which is: when I assign a ticket to another user and tick the "Notify by email" box, it doesn't work. If I don't tick the box, the ticket is properly assigned without any problem.  In the error console this happens:

Traceback (innermost last):
  File "../lib/webnotes/handler.py", line 154, in handle
    execute_cmd(cmd)
  File "../lib/webnotes/handler.py", line 189, in execute_cmd
    ret = call(method, webnotes.form_dict)
  File "../lib/webnotes/handler.py", line 206, in call
    return fn(**newargs)
  File "../lib/webnotes/widgets/form/assign_to.py", line 69, in add
    notify_assignment(d.assigned_by, d.owner, d.reference_type, d.reference_name, action='ASSIGN', description=args.get("description"), notify=args.get('notify'))
  File "../lib/webnotes/widgets/form/assign_to.py", line 157, in notify_assignment
    messages.post(json.dumps(arg))
  File "../lib/core/page/messages/messages.py", line 87, in post
    notify(arg)
  File "../lib/core/page/messages/messages.py", line 116, in notify
    sendmail(recipient, sender, message, arg.get("subject") or "You have a message from %s" % (fn,))
  File "../lib/webnotes/utils/email_lib/__init__.py", line 37, in sendmail
    get_email(recipients, sender, msg, subject).send()
  File "../lib/webnotes/utils/email_lib/smtp.py", line 237, in send
    self.as_string())
  File "/usr/lib/python2.7/smtplib.py", line 737, in sendmail
    raise SMTPDataError(code, resp)
 SMTPDataError: (550, '5.7.1 Client does not have permissions to send as this sender')

Any help is much appreciated.

Best,

Amin von Fritzing

Anand Doshi

unread,
Jul 1, 2013, 10:59:13 PM7/1/13
to erpnext-dev...@googlegroups.com
Hi Amin,

Are you using Amazon's Simple Email Service for SMTP?

From what we have encountered so far, Amazon's SES requires that each sender be whitelisted. When you assign something to the user, the email is sent with sender as the email address of the one assigning. So the assigner needs to have his/her email/email's domain whitelisted in Amazon SES.

-Anand.

--
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To post to this group, send email to erpnext-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/848852d7-7f7a-4d93-af8b-4c24434138c4%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

André Knörig

unread,
Jul 3, 2013, 12:42:59 PM7/3/13
to erpnext-dev...@googlegroups.com
Hi Anand,

I'm Amin's colleague and set up the system. We are not using Amazon SES, but Microsoft Office365 (which is basically Exchange).
As far as I can tell, Office365 only allows SMTP with authentication through username and password. But in ERPnext, we can only supply these for the main support ticket account, not for the individual users.
I'm not sure I understand how the whitelisting would work. Is ERPnext using the user's mail address and for the rest of the settings (including password) the support account's settings? Then I don't think there is a way to allow that in Office365.

However, it would be totally fine for us if the sender is always the support account. Inside of the notification mail, there could be a line that says "Amin has assigned the following ticket to you:...".
Is there a way to achieve that?

Thanks a lot,
André

Rushabh Mehta

unread,
Jul 3, 2013, 1:02:22 PM7/3/13
to erpnext-dev...@googlegroups.com
Andre,

ERPNext uses only one SMTP connection for all outgoing. See Setup > Email Settings. In the email text, it sets the current user in the "From:" header.

From what I see, Microsoft does not like this - Maybe we can have another property in Email Settings like "Always use common sender id" (checkbox) and if it is checked, then it will use the auto_email_id in Email Settings rather than the user's id. That would temporarily solve the problem.

You can add a condition here to set the "sender" property:


You can also check if Microsoft allows you to mask the "From:" setting.


T: @rushabh_mehta

--
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To post to this group, send email to erpnext-dev...@googlegroups.com.

Rushabh Mehta

unread,
Jul 3, 2013, 1:07:24 PM7/3/13
to erpnext-dev...@googlegroups.com

André Knörig

unread,
Jul 3, 2013, 1:30:45 PM7/3/13
to erpnext-dev...@googlegroups.com
Hi rushabh,

I don't think there's a chance to convince Microsoft to do anything. ;)

It would be great if you could add an option in the mail settings as you describe. That would solve our problem, and probably save many other users a headache, too.

Thanks!
André
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+unsub...@googlegroups.com.

Rushabh Mehta

unread,
Jul 4, 2013, 12:38:52 AM7/4/13
to erpnext-dev...@googlegroups.com
Andre,

This is not hard. Can you post a github issue for this?

best,
Rushabh




To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.

To post to this group, send email to erpnext-dev...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 



--



Twitter: @rushabh_mehta

André Knörig

unread,
Jul 4, 2013, 4:07:16 AM7/4/13
to erpnext-dev...@googlegroups.com
Thanks, and done: https://github.com/webnotes/wnframework/issues/204
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+unsubscr...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+unsub...@googlegroups.com.
To post to this group, send email to erpnext-dev...@googlegroups.com.

Rushabh Mehta

unread,
Jul 4, 2013, 9:15:06 AM7/4/13
to erpnext-dev...@googlegroups.com
sure, you want to raise a github issue for this?
>> To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.

>> To post to this group, send email to erpnext-dev...@googlegroups.com.
>> To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/1ea9c3aa-7936-48d8-aab8-c3c2f0607627%40googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>>
> --
> You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.

> To post to this group, send email to erpnext-dev...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/e362665a-f51d-4b0f-8d95-37b855afd673%40googlegroups.com.

> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  
>

Reply all
Reply to author
Forward
0 new messages