Files
mayan-edms/mayan/apps
Roberto Rosario d973a20c30 Mailing: Add support for a from field
Add support to the mailing profiles for specifying a "from"
address. Closes GitLab issue #522.

This commit adds a new backend class property "class_fields"
which differs from the normal "fields" property. The "class_fields"
property specifies which of the backend fields will be used to
initialize a backend's driver class. This is to avoid passing
fields that the driver doesn't expect and getting an error.

When sending emails, the "send" method will attempt to get
a "from" key from the backend data and use that when sending
emails. If no "from" key is found a None is passes. Django's
behavior in this situation dictates that the "from" value will
then be taken from the DEFAULT_FROM_EMAIL setting.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
2018-11-28 02:59:12 -04:00
..
2018-11-24 22:56:35 -04:00
2018-11-27 04:19:35 -04:00
2018-11-27 17:17:07 -04:00
2018-11-27 04:26:56 -04:00
2018-10-29 13:24:07 -04:00
2018-11-25 02:13:26 -04:00
2018-11-27 04:26:56 -04:00
2018-10-29 13:24:07 -04:00
2018-11-24 22:56:35 -04:00
2018-10-29 13:24:07 -04:00
2018-11-27 17:17:07 -04:00
2018-10-29 13:24:07 -04:00
2018-11-26 17:45:43 -04:00
2018-10-29 13:24:07 -04:00
2018-10-29 13:24:07 -04:00