Opened 20 years ago
Closed 15 years ago
#1538 closed defect (worksforme)
Email notify fail if user have blank email field in settings
Reported by: | Owned by: | Matthew Good | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | notification | Version: | devel |
Severity: | major | Keywords: | verify bitesized |
Cc: | brianlsmith@…, vyt@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description (last modified by )
I use trac trunk from 22 april 2005 with settings
always_notify_reporter = true always_notify_owner = true
If reporter not specified email address in settings, then trac fails to send emails:
Trac[Ticket] ERROR: Failure sending notification on change to ticket #25: iteration over non-sequence Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/trac/Ticket.py", line 434, in save_changes tn.notify(ticket, newticket=0, modtime=now) File "/usr/lib/python2.4/site-packages/trac/Notify.py", line 217, in notify NotifyEmail.notify(self, ticket['id'], subject ) File "/usr/lib/python2.4/site-packages/trac/Notify.py", line 117, in notify Notify.notify(self, resid) File "/usr/lib/python2.4/site-packages/trac/Notify.py", line 56, in notify self.send(to) File "/usr/lib/python2.4/site-packages/trac/Notify.py", line 356, in send NotifyEmail.send(self, rcpt, hdrs) File "/usr/lib/python2.4/site-packages/trac/Notify.py", line 150, in send self.server.sendmail(self.from_email, rcpt, msg.as_string()) File "/usr/lib/python2.4/smtplib.py", line 681, in sendmail for each in to_addrs: TypeError: iteration over non-sequence
Attachments (0)
Change History (14)
comment:1 by , 20 years ago
Cc: | added |
---|
comment:2 by , 20 years ago
Maybe one more hint on the above.
I added the comment plus I added a person to the CC list. All persons where userid except for the new cc, this was an email address.
comment:3 by , 20 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
I'll take a look at this with some of the other work I'm doing on the notification.
comment:5 by , 19 years ago
Cc: | added |
---|
comment:7 by , 18 years ago
Cc: | removed |
---|
comment:8 by , 18 years ago
#2729 has been marked as a duplicate. It also contains a simple patch (not sure for what version or rev though).
comment:10 by , 18 years ago
Component: | ticket system → notification |
---|---|
Milestone: | → 0.10.5 |
Should be verified.
comment:11 by , 17 years ago
Description: | modified (diff) |
---|---|
Keywords: | verify added; needinfo removed |
Milestone: | 0.10.5 → 0.11.1 |
It's probably working now, but worth doing a check.
comment:12 by , 15 years ago
Keywords: | bitesized added |
---|
comment:13 by , 15 years ago
I've verified that:
- if both always_notify_reporter and always_notify_owner are set to True, and there's no owner defined, the mail is sent successfully to the porter, no errors there.
- added to the cc field both a username and an e-mail address. e-mail were sent successfully to all recipients.
ticket verified.
comment:14 by , 15 years ago
Milestone: | next-minor-0.12.x |
---|---|
Resolution: | → worksforme |
Status: | assigned → closed |
Excellent, thanks.
I have a similar experience. This time I added a new email to the cc. I kept on getting the error until I removed the person from the cc again. However, the email was successfully send to all people on the cc list and the item was added three times to the ticket.
I am using r1724.