sendgrid-api-v3

I added In-Reply-To and References in my headers while sending Email through SendGrid, however it doesn't work

I added In-Reply-To and References in my headers while sending Email through SendGrid, however it doesn't work Question: So I am sending an email reply through SendGrid and I have a message object something like this: message = { "personalizations": context["personalizations"], "from": {"email": context["sender_email"]}, "subject": context["subject"], "content": [{"type": MimeType.html, "value": context["body"]}], "reply_to": {"email": context["reply_to"]}, "headers": …

Total answers: 1

Python Sendgrid send email with all extension file attachment django

Python Sendgrid send email with all extension file attachment django Question: I want to send an email with an attachment using SendGrid API with all extensions in Django. Here is my code for mail sending. views.py def submitTicket(request): try: if request.method == ‘POST’: name = request.POST.get(‘name’) email = request.POST.get(’email’) subject = request.POST.get(‘subject’) comment = request.POST.get(‘comment’) …

Total answers: 2