Roberto Rosario
a5ab9f3ea6
Use COMMON_PROJECT_URL as host for document link
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-05-15 02:43:50 -04:00
Roberto Rosario
62f49e390a
Show a null mailer for backend with invalid path
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-05-15 02:36:24 -04:00
Roberto Rosario
1c5681c79d
Code style cleanups
...
Sort arguments, methods. Add keyword arguments.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-25 05:06:56 -04:00
Roberto Rosario
7f0377a8c5
Add mailer use event
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-22 02:23:57 -04:00
Roberto Rosario
29b41a7638
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 >
2019-04-15 15:22:54 -04:00
Roberto Rosario
b6976210a5
Add docstrings for almost all models
...
Also adds docstring to some managers and model methods.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-15 15:19:38 -04:00
Roberto Rosario
cbcb8a84c5
Add natural key support to the user mailer model.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-08-03 18:52:53 -04:00
Roberto Rosario
8496ea7072
Add support for HTML bodies to the user mailers. Closes GitLab issue #470 .
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-04-10 17:54:43 -04:00
Michael Price
53239385ae
Add the "to=" keyword argument to all ForeignKey, ManayToMany and OneToOne Fields.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 20:49:04 -04:00
Michael Price
28aa0b913c
Reorganize and sort models and managers according to Mayan's best practices.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 20:21:37 -04:00
Roberto Rosario
f09321f6ab
Fix deprecation warnings for Django 1.11 and Django 2.0.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-21 00:25:18 -04:00
Roberto Rosario
7a8881c305
Increase the size of the mailing profile label field to 128 characters.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-17 21:23:59 -04:00
Roberto Rosario
cc33e1d259
Add support for emailing documents to a recipient list. GitLab #396
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-12 02:50:29 -04:00
Roberto Rosario
a72ac6eadb
Add user mailer backends support. GitLab issue #286 .
...
Add support for creating dynamic forms.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-03 13:37:56 -04:00
Roberto Rosario
cf00ba2c40
PEP8 and minor cleanups, fixes.
2015-08-07 03:45:46 -04:00
Roberto Rosario
4de73772ed
Add persistent error logging to the mailer app.
2015-07-29 17:15:12 -04:00
Roberto Rosario
bd041457c9
Update project to use Django 1.7.7. Issue #33
2015-03-30 03:43:56 -04:00
Roberto Rosario
ce92f58fed
Add mailer app to add support to send document or document links via email
2014-10-08 16:28:04 -04:00