- Python 3.8 or higher
- EnvíaloSimple Transaccional API Key (Create a demo account for free here)
pip install envialosimple-transaccional
from envialosimple.transaccional import Transaccional
from envialosimple.transaccional.mail import MailParams
estr = Transaccional(your_api_key)
params = MailParams(
from_email='no-reply@mycompany.com',
from_name='MyCompany Notifications',
to_email='john.doe@example.com',
to_name='John Doe',
reply_to='reply@here.com',
subject='This is a test for {{name}}',
preview_text='A glimpse of what comes next...',
html='<h1>HTML emails are cool, {{name}}</h1>',
text='Text emails are also cool, {{name}}',
context={'name': 'John'})
estr.mail.send(params)