Browse Source

updated readme

master
Holger Frey 6 years ago
parent
commit
f93ea17b45
  1. 8
      README.md

8
README.md

@ -3,7 +3,7 @@
Simple tool for sending email with sendmail, postfix or ssmtpd. Simple tool for sending email with sendmail, postfix or ssmtpd.
Example: Example:
{{{ ```python
import pysema import pysema
pysema.send( pysema.send(
@ -11,13 +11,13 @@ Example:
'really good subject line', 'really good subject line',
'Message body goes here' 'Message body goes here'
) )
}}} ```
If you need to send some complex message, use [email.message][em] from the If you need to send some complex message, use [email.message][em] from the
Python standard library to construct the message (including header fields) and Python standard library to construct the message (including header fields) and
pass it to the `send_message` function: pass it to the `send_message` function:
{{{ ```python
import pysema import pysema
from email.message import EmailMessage from email.message import EmailMessage
@ -25,7 +25,7 @@ pass it to the `send_message` function:
# compose message # compose message
pysema.send_message(msg) pysema.send_message(msg)
}}} ```
if something goes whoopsie a `pysema.SendMailException` is raised. if something goes whoopsie a `pysema.SendMailException` is raised.

Loading…
Cancel
Save