No notification when tickets are assigned

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



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+un...@googlegroups.com.

To post to this group, send email to er...@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.

 

 

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.

On 01-Jul-2013, at 11:17 PM, Amin Zayani <za...@gmail.com> wrote:

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



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+un…@googlegroups.com.

To post to this group, send email to er…@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.

 

 




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+un...@googlegroups.com.

To post to this group, send email to er...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/FB57AC03-4DCA-4B69-A76E-EC11C1AE2B95%40erpnext.com.

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

 

 

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é



On Tuesday, July 2, 2013 4:59:13 AM UTC+2, Anand Doshi wrote:
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.

On 01-Jul-2013, at 11:17 PM, Amin Zayani <za…@gmail.com> wrote:

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




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+un...@googlegroups.com.

To post to this group, send email to er...@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.

 

 

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:

https://github.com/webnotes/wnframework/blob/master/webnotes/utils/email_lib/__init__.py#L29

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


T: @rushabh_mehta

On 03-Jul-2013, at 10:12 PM, André Knörig <an...@gmail.com> wrote:

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é



On Tuesday, July 2, 2013 4:59:13 AM UTC+2, Anand Doshi wrote:
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.

On 01-Jul-2013, at 11:17 PM, Amin Zayani <za...@gmail.com> wrote:

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





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+un…@googlegroups.com.

To post to this group, send email to er…@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-forum+un...@googlegroups.com.

To post to this group, send email to er...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/0DF29B04-0348-493A-AEA4-164EF94CFB24%40erpnext.com.

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

 

 

1 Like
Sorry this is the more generic function:

https://github.com/webnotes/wnframework/blob/master/webnotes/utils/email_lib/__init__.py#L31


On 03-Jul-2013, at 10:32 PM, Rushabh Mehta <rm...@gmail.com> wrote:

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

On 03-Jul-2013, at 10:12 PM, André Knörig <an...@gmail.com> wrote:

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é



On Tuesday, July 2, 2013 4:59:13 AM UTC+2, Anand Doshi wrote:
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.

On 01-Jul-2013, at 11:17 PM, Amin Zayani <za...@gmail.com> wrote:

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





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+un…@googlegroups.com.

To post to this group, send email to er…@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-forum+un...@googlegroups.com.

To post to this group, send email to er...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/72EB79C6-24B1-42F5-93AF-E58C46744C0E%40gmail.com.

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

 

 

Hi rushabh,


I don’t think there’s a chance to convince Microsoft to do anything. :wink:

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é

On Wednesday, July 3, 2013 7:07:24 PM UTC+2, rushabh wrote:
Sorry this is the more generic function:

https://github.com/webnotes/wnframework/blob/master/webnotes/utils/email_lib/init.py#L31


On 03-Jul-2013, at 10:32 PM, Rushabh Mehta <rm...@gmail.com> wrote:

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

On 03-Jul-2013, at 10:12 PM, André Knörig <an...@gmail.com> wrote:

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é



On Tuesday, July 2, 2013 4:59:13 AM UTC+2, Anand Doshi wrote:
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.

On 01-Jul-2013, at 11:17 PM, Amin Zayani <za...@gmail.com> wrote:

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





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+un…@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-forum+un...@googlegroups.com.

To post to this group, send email to er...@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.

 

 

Andre,

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

best,
Rushabh




On Wed, Jul 3, 2013 at 11:00 PM, André Knörig <an...@gmail.com> wrote:
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é


On Wednesday, July 3, 2013 7:07:24 PM UTC+2, rushabh wrote:
Sorry this is the more generic function:

https://github.com/webnotes/wnframework/blob/master/webnotes/utils/email_lib/__init__.py#L31


On 03-Jul-2013, at 10:32 PM, Rushabh Mehta <rm...@gmail.com> wrote:

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

On 03-Jul-2013, at 10:12 PM, André Knörig <an...@gmail.com> wrote:

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é



On Tuesday, July 2, 2013 4:59:13 AM UTC+2, Anand Doshi wrote:
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.

On 01-Jul-2013, at 11:17 PM, Amin Zayani <za...@gmail.com> wrote:

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





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+un…@googlegroups.com.


To post to this group, send email to erpnext-dev…@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+un…@googlegroups.com.

To post to this group, send email to er…@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.





--



Twitter: @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-forum+un...@googlegroups.com.

To post to this group, send email to er...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CANn8SW%2BNQ0Pa0W4C%2B_rVBV%2Bd1CwXNrUHAqMR%3DMDUG1ycA-SqFw%40mail.gmail.com.

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

 

 

Thanks, and done: https://github.com/webnotes/wnframework/issues/204



On Thursday, July 4, 2013 6:38:52 AM UTC+2, rushabh wrote:
Andre,

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

best,
Rushabh




On Wed, Jul 3, 2013 at 11:00 PM, André Knörig <an...@gmail.com> wrote:
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é


On Wednesday, July 3, 2013 7:07:24 PM UTC+2, rushabh wrote:
Sorry this is the more generic function:

https://github.com/webnotes/wnframework/blob/master/webnotes/utils/email_lib/__init__.py#L31


On 03-Jul-2013, at 10:32 PM, Rushabh Mehta <rm...@gmail.com> wrote:

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

On 03-Jul-2013, at 10:12 PM, André Knörig <an...@gmail.com> wrote:

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é



On Tuesday, July 2, 2013 4:59:13 AM UTC+2, Anand Doshi wrote:
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.

On 01-Jul-2013, at 11:17 PM, Amin Zayani <za...@gmail.com> wrote:

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





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+unsubscr…@googlegroups.com.


To post to this group, send email to erpnext-dev…@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+un…@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.
 
 



--



Twitter: @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-forum+un...@googlegroups.com.

To post to this group, send email to er...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/2dcedcd2-cf8f-4d27-910b-79f0509c3fac%40googlegroups.com.

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

 

 

sure, you want to raise a github issue for this?

On Wednesday, July 3, 2013, André Knörig <an…@gmail.com> wrote:
> Hi rushabh,
> I don’t think there’s a chance to convince Microsoft to do anything. :wink:

> 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é
>
> On Wednesday, July 3, 2013 7:07:24 PM UTC+2, rushabh wrote:

>>
>> Sorry this is the more generic function:
>> https://github.com/webnotes/wnframework/blob/master/webnotes/utils/email_lib/init.py#L31

>>
>>
>> On 03-Jul-2013, at 10:32 PM, Rushabh Mehta <rm…@gmail.com> wrote:
>>
>> 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:
>> https://github.com/webnotes/wnframework/blob/master/webnotes/utils/email_lib/init.py#L29

>> You can also check if Microsoft allows you to mask the “From:” setting.
>>
>> W: https://erpnext.com
>> T: @rushabh_mehta
>> On 03-Jul-2013, at 10:12 PM, André Knörig <an…@gmail.com> wrote:

>>
>> 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é
>>
>>
>> On Tuesday, July 2, 2013 4:59:13 AM UTC+2, Anand Doshi wrote:
>>>
>>> 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.
>>> On 01-Jul-2013, at 11:17 PM, Amin Zayani <za…@gmail.com> wrote:
>>>
>>> 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
>>>
>>
>> –
>> 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+un…@googlegroups.com.

>> To post to this group, send email to er…@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-forum+un…@googlegroups.com.

> To post to this group, send email to er…@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.
>
>
>





https://erpnext.com
Twitter: @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-forum+un...@googlegroups.com.

To post to this group, send email to er...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CANn8SWJ5tk24_%2BaFYOUXcp_7pgcLA8PaHbKw%2BzvzZ4cm0EeoRg%40mail.gmail.com.

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