Commit Graph

157 Commits

Author SHA1 Message Date
Jared Morse
2eba028a1a DjrillBackend preserve_recipients 2012-12-03 18:55:05 -08:00
Jared Morse
7827352da1 preserve_recipients parameter in DjrillMessage 2012-12-03 18:52:58 -08:00
medmunds
d9cb23b003 Support from_name in "from_name <email>" sender address.
Allows specifying the sender's display name as part of the from email address,
without requiring use of the DjrillMessage class:

    send_mail('Subject', 'Message', 'From Name <from@example.com>',
              ['Recipient #1 <to1@example.com>', 'to2@example.com'])

(This matches the behavior of Django's default SMTP backend.)

Cherry-picked from:
medmunds/Djrill@46cd5c9d: Support "realname <email>" sender address
medmunds/Djrill@cd4e57cc: Support "realname <email>" sender address - fix for using DjrillMessage
medmunds/Djrill@16f8efc9: Add tests for "Display Name <email@example.com>" addresses
2012-11-23 10:47:20 -08:00
Kenneth Love
5a986fe5b5 removed other mention of ADMIN_MEDIA_PREFIX 2012-11-23 10:00:13 -08:00
Kenneth Love
2aaa72edaf Merge pull request #9 from medmunds/admin_remove_verify_sender
Remove obsolete admin related to sender verification
2012-11-23 09:53:07 -08:00
medmunds
052f54113e Remove obsolete admin related to sender verification
(Also match admin view method signatures to base classes and remove
unused imports while we're in there.)

Cherry-picked from medmunds/Djrill@ce69fd78
2012-11-21 14:46:32 -08:00
medmunds
c78bbc6ced [minor cleanup] Allow html from any EmailMultiAlternatives (not just DjrillMessage) 2012-11-16 11:07:15 -08:00
medmunds
c23696a590 Allow html from any EmailMultiAlternatives (not just DjrillMessage)
Includes type-checking on alternative message part, and switches
to ValueError (rather than ImproperlyConfigured) for unacceptable
alternatives.

[Also fixes bug where fail_silently=True wasn't respected.]

Cherry-picked from: medmunds/Djrill@faf53a1a0
(and parts of medmunds/Djrill@62d48c5f)
2012-11-15 16:17:16 -08:00
medmunds
1901fd444e Allow extra headers from any EmailMessage (not just DjrillMessage)
Also adds test case for basic functionality on django.core.mail.EmailMessage.

Cherry-picked from: medmunds/Djrill@f0503783f
2012-11-15 15:49:08 -08:00
Rafael E. Belliard
008b6cfa36 Provide a way to block admin.py when django-adminplus isn't loaded. 2012-11-13 17:05:50 -04:00
medmunds
1bec172611 Testing on backend API calls, using mock; add runtests.py.
Cherry-picked from:
8c26807a - Add runtests.py for testing separately from other Django apps
cd8504b1 - Make tests compatible with setuptools
4ac65b78 - Set up testing on the backend API calls, using mock
2012-10-31 18:15:54 -07:00
Kenneth Love
442229d08d added AUTHORS.txt. bumped version to 0.1.2 2012-10-31 14:17:37 -07:00
medmunds
5602fc5314 Backend: Remove obsolete api_verify altogether.
Remove connection management (remnant of sender verification, and
didn't match Django email backend signatures).
Reformat inherited patch to 80-char line width.
Consistent int return type from send_messages.
2012-10-31 11:51:47 -07:00
medmunds
c1e577c6f5 Backend: fix exception messaging 2012-10-31 11:44:03 -07:00
Arnaud Fribault
96b5733e9d Fixes error message formatting 2012-10-31 11:44:03 -07:00
Arnaud Fribault
5b35988034 Raise a valid exception if failedSilently is false 2012-10-31 11:44:03 -07:00
Theo Crevon
71292aa223 Update : new sender validation endpoint and process 2012-10-30 17:21:46 +01:00
Kenneth Love
7c0dc87d2d {% admin_media_prefix %} is now {{ STATIC_URL }}admin/. Fixes issue #2 2012-10-24 16:58:34 -07:00
Chris Jones
e8834fe326 Handle extra headers accepted by Mandrill, also extra option of from_name. Tests to cover checking of extra headers and from_name. 2012-02-28 15:35:29 -08:00
Chris Jones
4db1b9d087 You didn't see that. 2012-02-28 15:08:28 -08:00
Chris Jones
cbd7f429d6 from_name, make it so. 2012-02-28 15:06:01 -08:00
Chris Jones
47860493af Better API error handling. 2012-02-28 14:54:40 -08:00
Kenneth Love
9b66916eb2 send back a message and redirect to admin home if mandrill returns anything but a 200 2012-02-28 14:34:15 -08:00
Kenneth Love
47e5228114 final updates 2012-02-28 14:29:07 -08:00
Kenneth Love
bbdce3c9af Merge branch 'master' of github.com:brack3t/Djrill 2012-02-28 14:27:33 -08:00
Kenneth Love
1e1e2593e9 removed unused templates 2012-02-28 14:27:18 -08:00
Kenneth Love
38a80e2b95 urls and tags list views 2012-02-28 14:25:28 -08:00
Chris Jones
e1b46c286f Add blank models file for tests to run. 2012-02-28 14:03:50 -08:00
Chris Jones
2d777b5679 Tests for DjrillMessage. 2012-02-28 14:01:06 -08:00
Chris Jones
64bbd40884 No, really. Now it works with standard emails. 2012-02-28 13:08:06 -08:00
Chris Jones
91b846fea3 DjrillMessage which wraps Django's EmailMultiAlternatives. Mail backend now works with standard email and multipart through the DjrillMessage object. 2012-02-28 13:03:26 -08:00
Chris Jones
d6ff089060 Fix recipients list. 2012-02-28 11:34:48 -08:00
Chris Jones
e4362f8c34 Its broken. Parse recipients. 2012-01-20 18:24:13 -08:00
Chris Jones
3b227b2f70 Basic send_mail functioning. 2012-01-20 18:03:33 -08:00
Chris Jones
f5f52328e3 Merge branch 'master' of github.com:brack3t/Djrill into feature/backend 2012-01-20 16:59:36 -08:00
Chris Jones
fd04e60171 Start of the mail backend for djrill. 2012-01-20 16:59:15 -08:00
Kenneth Love
7612856b72 better appearance for the form and a sidebar with mandrill status. 2012-01-20 16:55:20 -08:00
Chris Jones
b18b3ced46 Add form and view for adding a new sender. 2012-01-20 16:33:29 -08:00
Kenneth Love
e8c3d84b28 cleaner form, properly sending. view has a bit more config 2012-01-16 18:09:44 -08:00
Kenneth Love
ddfde06be4 Merge branch 'master' of github.com:brack3t/Djrill 2012-01-16 17:50:33 -08:00
Kenneth Love
ab0ac414be meh 2012-01-16 17:50:26 -08:00
Kenneth Love
7875158f6f converted template to use real form 2012-01-16 17:47:53 -08:00
Chris Jones
8141037bf4 Add api_action class attribute so that disable sender and verify sender can use the same view. 2012-01-16 17:03:51 -08:00
Chris Jones
799f9ba7fd Add ability to have named urls. 2012-01-16 16:49:56 -08:00
Kenneth Love
53046715d9 status template 2012-01-16 15:48:40 -08:00
Kenneth Love
7844247a77 meh? 2012-01-16 15:34:43 -08:00
Kenneth Love
851bacdd72 first senders list with template 2012-01-16 15:29:48 -08:00
Chris Jones
f5c697af0d Im so ashamed of myself. Sorry PEP8 2012-01-16 14:52:44 -08:00
Chris Jones
7f01992dfb awesomesauce 2012-01-16 14:51:06 -08:00
Chris Jones
607a480a97 Mixin for grabbing the api info from the settings. 2012-01-16 14:27:43 -08:00