web.utils.sendmail should support multiple to_addresses

Bug #141104 reported by Aaron Swartz
4
Affects Status Importance Assigned to Milestone
web.py
Fix Released
Medium
Anand Chitipothu

Bug Description

Sometimes you might want to send an email to multiple people.

Aaron Swartz (aaronsw)
Changed in webpy:
importance: Undecided → Medium
status: New → Confirmed
Changed in webpy:
assignee: nobody → anandology
milestone: none → 0.3
status: Confirmed → Fix Committed
Revision history for this message
Manatsawin Hanmongkolchai (whs) wrote :

I found this in utils.py, lastest revision

    headers = dictadd({
      'MIME-Version': '1.0',
      'Content-Type': 'text/plain; charset=UTF-8',
      'Content-Disposition': 'inline',
      'From': from_address,
      'To': ", ".join(to_address),
      'Subject': subject
    }, headers)

So, isn't it already in Web.py? Just use ('<email address hidden>', '<email address hidden>') as the to_address (not tested)

Changed in webpy:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.