Skip to content

Commit 4ff87c9

Browse files
author
Guillaume Badi
committed
send example in readme
1 parent f5cafbc commit 4ff87c9

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,18 @@ result = mailjet.sender.post(data={'email': '[email protected]'})
4545
# Get the contact lists of contact #2
4646
result = mailjet.contact_getcontactslists.get(id=2)
4747
```
48+
49+
## Send an Email
50+
``` python
51+
52+
email = {
53+
'FromName': 'Mr Smith',
54+
'FromEmail': '[email protected]',
55+
'Subject': 'Test Email',
56+
'Text-Part': 'Hey there !',
57+
'Recipients': [{'Email': 'your email here'}]
58+
}
59+
60+
mailjet.send.post(email)
61+
62+
```

0 commit comments

Comments
 (0)