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 apply conditional rendering based on recipient variables #296

Closed Thamaraiselvan5960 closed 1 year ago

Thamaraiselvan5960 commented 1 year ago

Reporting an error? It's helpful to know:

medmunds commented 1 year ago

@Thamaraiselvan5960 sorry, I'm not sure what you're trying to do here. Did you mean to include a bug report with this?

If you have a question, it might help to check the suggestions at https://anymail.dev/help/

Thamaraiselvan5960 commented 1 year ago

<a href="{{ INSTANCE.url }}?email_access_code=%recipient.email_access_code%" target="_blank"> <button>View</button> </a> all i need is if email_access_code is empty then i don't want the email_access_code in href attribute.

Is this feature available in anymail ? @medmunds

medmunds commented 1 year ago

Closing as duplicate of discussion #297