Skip to content

Envio de e-mail #27

@Pythonando

Description

@Pythonando

Não estou conseguindo enviar e-mail via o wrapper:

meu código:

from pysendpulse.pysendpulse import PySendPulse

REST_API_ID = ''
REST_API_SECRET = ''

SPApiProxy = PySendPulse(REST_API_ID, REST_API_SECRET)

email = {
        'subject': 'Teste send pulse',
        'html': '<h1>Hello, John!</h1><p>This is the test task from https://sendpulse.com/api REST API!</p>',
        'text': 'Hello, John!\nThis is the test task from https://sendpulse.com/api REST API!',
        'from': {'name': 'Caio Sampaio', 'email': '[email protected]'},
        'to': [
            {'name': 'Caio', 'email': '[email protected]'}
        ],
        
    }

SPApiProxy.smtp_send_mail(email)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions