Skip to content

Commit

Permalink
Tweak docstring on send
Browse files Browse the repository at this point in the history
  • Loading branch information
meshy committed Jun 26, 2014
1 parent f8d5a95 commit 98da8d2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions incuna_mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ def send(sender=None, to=(), cc=(), bcc=(), subject='mail',
`template_name` for the html part and `text_template_name` for the plain part.
The context will include any `context` specified.
If no sender is specified then the DEFAULT_FROM_EMAIL or SERVER_EMAIL setting will be used.
Any extra items passed in with kwargs will be added to the email headers.
If no `sender` is specified then the DEFAULT_FROM_EMAIL or SERVER_EMAIL setting will be used.
Extra email headers can be passed in to `headers` as a dictionary..
"""
to, cc, bcc = map(lambda v: [v] if isinstance(v, six.string_types) else v, [to, cc, bcc])

Expand Down

0 comments on commit 98da8d2

Please sign in to comment.