Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

At least one valid recipient is required Code: 5002 Description: none #223

Open
davidgg090 opened this issue May 25, 2022 · 0 comments
Open

Comments

@davidgg090
Copy link

Hi guys, I'm trying to send emails through the Spark API but every now and then I get this error message, looking for info here (https://stackoverflow.com/questions/35771408/sparkpost-at-least-one-valid -recipient-is-required-python-django-api) comment that a correction was made but it still appears.
Django Version=3.0.8
Sparkpost version==1.3.8
My send email function is like this:

def send_email(email):
    sp = SparkPost()
    sp.transmissions.send(
        use_sandbox=False,
        recipients=[email],
        html='Bla bla',
        from_email='algo@mail.com',
        subject='Data'
    )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant