A Python library for sending emails with the help of amazon service SES (simple email service).
Project description
SES Email service
A Python library for sending emails with the help of amazon service SES (simple email service).
Installation steps
You can install SES Mailer using pip:
command- pip install ses-email-x20238813
How to use ?
-
Create a IAM user - add policy AmazonSESFullAccess
-
Create access key and input the key and secret access key aws_access_key_id = '' aws_secret_access_key = ''
-
Instantiate SESEmailService object mailService = SESMailer(aws_access_key_id, aws_secret_access_key)
-
Define the following variables- sender_email = 'abc@gmail.com' recipient_email = 'abcd@gmail.com' subject = 'Email Subject' body = 'Add the message here that you want to send'
Note before sending the email user must be identified in you AWS, so to do so pass the email address that needs to be verified, a email will be sent to user from amazon, once user approves it then only they can send or recieve email.
-
mailService.Identify_user_email(verifiy_email)
-
Once user is verified then you can send them email using the following code- mailService.send_email(sender_email, recipient_email, subject, body)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ses_email_service-0.1.tar.gz.
File metadata
- Download URL: ses_email_service-0.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6eb025ed7c9bc0213143dc84bb3c6f80435672e13107ebb9821cc3fb9a23054
|
|
| MD5 |
e9e351a8604e59d479ff044ad1f0234e
|
|
| BLAKE2b-256 |
a738197738abd598285a498257db66eb3713755400d9253a5aa57b2076268346
|
File details
Details for the file ses_email_service-0.1-py3-none-any.whl.
File metadata
- Download URL: ses_email_service-0.1-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c86d0f1862b8ca2f2d1f57acb564881c527f8d29600c120e8ec48d5208aec9aa
|
|
| MD5 |
6181f03a401a8531ee7ffbaf64db603a
|
|
| BLAKE2b-256 |
26b7aaec1c6c529e3dbfd93b79eff9f83e3dd7a08a408f7b29f3d0f087987b56
|