Skip to main content

Python SDK for EnvíaloSimple Transaccional

Project description

EnvíaloSimple Transaccional - Python SDK

Requirements

Installation

pip install envialosimple-transaccional

Basic Usage

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)

Multiple Recipients Usage

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=[
                {"email": 'jane.doe@example.com', "name": 'Jane Doe'},
                {"email": 'sean.smith@example.com', "name": 'Sean Smith'},
                {"email": 'john.doe@example.com'}
        ], 
        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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

envialosimple_transaccional-0.2.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

envialosimple_transaccional-0.2.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file envialosimple_transaccional-0.2.0.tar.gz.

File metadata

  • Download URL: envialosimple_transaccional-0.2.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.8.20 Linux/6.8.0-57-generic

File hashes

Hashes for envialosimple_transaccional-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7305ff8c85092ba7b9439d8a236b05ec978ba5991ab1d7b72244bb47aae97607
MD5 767c8cb9f319eec06292891999566133
BLAKE2b-256 e8bb3280a923460b445f06630a9297e4d8205717ad676a3275d389de4f6b098a

See more details on using hashes here.

File details

Details for the file envialosimple_transaccional-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for envialosimple_transaccional-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 201f3f5f9413f84f7acb61e99bdffb6f7383b807b0379d629752b232dbec7dd7
MD5 c0916d31a2f4d9e03aefedff830dc392
BLAKE2b-256 6bcb21df692016eba351e41761ad85a1e4b3605c61806b0da3e29eac34212c85

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page