Skip to content

Commit 57dfb31

Browse files
committed
Bump to 0.2.1, documentation for POSTMARK_TEST_MODE
1 parent 99e2f70 commit 57dfb31

3 files changed

Lines changed: 27 additions & 5 deletions

File tree

README

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ PYTHON INFORMATION:
77
Python 2.6 has JSON support built in.
88

99
CHANGE LOG:
10+
Version 0.2.1
11+
- Merged in POSTMARK_TEST_MODE Django setting from maraujop
1012
Version 0.2.0
1113
- Merged with frozenskys/master to bring in PMBounceManager
1214
- Support for multiple to/cc (limit: 20 per)
@@ -55,14 +57,20 @@ DJANGO:
5557

5658
POSTMARK_API_KEY = 'your-key'
5759
POSTMARK_SENDER = '[email protected]'
60+
POSTMARK_TEST_MODE = [True/False]
5861

5962
to your settings.py file, and when you create a new PMMail object,
6063
it will grab the API key and sender automatically. Make sure the
6164
sender email address is one of your Sender Signature email addresses
6265
in Postmark. You can also customize the name on the sender by
6366
changing the format from '[email protected]' to
6467
'Sender Name <[email protected]>' as long as the email part is
65-
part of a Sender Signature in Postmark
68+
part of a Sender Signature in Postmark.
69+
70+
Using POSTMARK_TEST_MODE=True will not actually send the email, but
71+
instead dump the JSON packet that would be sent to Postmarkapp.com.
72+
By default this setting is False, and if not specified, will
73+
be assumed to be False.
6674

6775
To reoute all Django E-Mail functions like send_mail() and
6876
mail_admins() through postmark use the following setting:

postmark/__init__.py

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
__version__ = '0.2.0'
1+
__version__ = '0.2.1'
22
__author__ = "Dave Martorana (http://davemartorana.com) & Richard Cooper (http://frozenskys.com)"
3-
__date__ = '2010-April-14'
3+
__date__ = '2011-January-31'
44
__url__ = 'http://postmarkapp.com'
55
__copyright__ = "(C) 2009-2010 David Martorana, Wildbit LLC, Python Software Foundation."
6-
__contributors__ = "Dave Martorana (themartorana), Bill Jones (oraclebill), Richard Cooper (frozenskys)"
6+
__contributors__ = "Dave Martorana (themartorana), Bill Jones (oraclebill), Richard Cooper (frozenskys), Miguel Araujo (maraujop)"
77

88
__doc__ = '''
99
@@ -15,6 +15,8 @@
1515
Contributors: ''' + __contributors__ + '''
1616
1717
CHANGE LOG:
18+
Version 0.2.1
19+
- Merged in POSTMARK_TEST_MODE Django setting from maraujop
1820
Version 0.2.0
1921
- Merged with frozenskys/master to bring in PMBounceManager
2022
- Support for multiple to/cc (limit: 20 per)
@@ -70,6 +72,18 @@
7072
to your settings.py file, and when you create a new PMMail object,
7173
it will grab the API key automatically.
7274
75+
Using POSTMARK_TEST_MODE=True will not actually send the email, but
76+
instead dump the JSON packet that would be sent to Postmarkapp.com.
77+
By default this setting is False, and if not specified, will
78+
be assumed to be False.
79+
80+
To reoute all Django E-Mail functions like send_mail() and
81+
mail_admins() through postmark use the following setting:
82+
83+
EMAIL_BACKEND = 'postmark.django_backend.EmailBackend'
84+
85+
But keep in mind that even when using standard Django functions
86+
the sender must be registered with postmarkapp.com.
7387
7488
EXCEPTIONS:
7589
PMMailMissingValueException(Exception):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
long_description = long_description,
1717
url = "http://github.com/themartorana/python-postmark",
1818
classifiers=[
19-
'Development Status :: 3 - Alpha',
19+
'Development Status :: 4 - Beta',
2020
'Environment :: Web Environment',
2121
'Intended Audience :: Developers',
2222
'Operating System :: OS Independent',

0 commit comments

Comments
 (0)