Ticket #1762 (closed enhancement: fixed)

Opened 3 years ago

Last modified 6 months ago

Provide a high level utility for sending email

Reported by: gracinet Assigned to: gracinet
Priority: P2 Milestone: CPS 3.4.8
Component: CPSUtil Version: TRUNK
Severity: normal Keywords: smtp email mime
Cc:

Description

The standard library simply provides basic bricks to construct mail bodies. CPSCourrier's sending mail methods use them for simple cases that cover most needs (html with text alternative and attachments) and uses the MailHost? object, working around a few problems.

This should be exposed in CPSUtil, and eventually CPSSubscription should use it.

Change History

12/22/08 14:39:38 changed by gracinet

  • milestone changed from CPS 3.5.0 to CPS 3.4.8.

Done in trunk [53279] by extracting send_mail() from CPSCourrier.workflows.scripts. This method still lacks a bit of flexibility (support for Bcc, and additional headers) and could be impacted by the "From mangling" mentioned in the documentation of the as_string() method of the email.Message class.

Ticket stays open until these are fixed, the new utility should be merged in 3.4 branch as well (can't harm).

12/23/08 13:09:05 changed by gracinet

Support for Bcc and additional headers has been added in trunk [53285]. The utility is now able to handle CPSSubscriptions use-cases.

12/23/08 13:30:47 changed by gracinet

Merged in 3.4 branch [53289]

12/23/08 13:34:26 changed by gracinet

  • status changed from new to closed.
  • resolution set to fixed.

From mangling potential issue is now known as #1949