anymail / django-anymail

Django email backends and webhooks for Amazon SES, Brevo (Sendinblue), MailerSend, Mailgun, Mailjet, Postmark, Postal, Resend, SendGrid, SparkPost, Unisender Go and more
https://anymail.dev
BSD 3-Clause "New" or "Revised" License
1.67k stars 129 forks source link

How to attach file for each specific email ? #302

Closed huynd26 closed 1 year ago

huynd26 commented 1 year ago

Reporting an error? It's helpful to know: I have some changes in ics file for each recipient and want to make sure that each recipient gets their own ics file instead of one attachment for all emails like below.

    msg = AnymailMessage(
        subject=subject, body=body, from_email=from_email, to=list_emails
    )
    msg.attach("meeting_invite.ics", meeting_invite, "text/calendar")