Skip to content

Envio de e-mail #27

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': 'caio@pythonando.com.br'},
        'to': [
            {'name': 'Caio', 'email': 'caio.h.sampaio@outlook.com'}
        ],
        
    }

SPApiProxy.smtp_send_mail(email)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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