E
E
ekzotika2020-10-09 11:09:59
Django
ekzotika, 2020-10-09 11:09:59

Why doesn't EmailMultiAlternatives send email?

I'm trying to send an email to an email address with a pdf attachment. There are no errors, but the letter does not come to the mail. What is wrong with my code, please tell me?

email = EmailMultiAlternatives(
        'Subject here', 'Here is the message.', '[email protected]',
        ['[email protected]'])
    email.attach_file('nds.pdf')
    email.send()

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question