emailsendgridreply

Sendgrid Web API -- set multiple users in reply_to field


I'm using the Sendgrid Python library, and I'd like to send emails with multiple people in the 'reply_to' field.

I'd like to send an email to 2 people such that both users can email one another by hitting reply. The simplest solution to this seems to be to put both users in the reply to field.

I haven't seen any way to do this in the Sendgrid docs -- they seem to only want a single email address string in their 'reply_to' field. However, I know that emails with this characteristic are possible (please excuse the budget redaction job):

Multiple entries in the reply-to field

Anyway, as you can see, multiple entries in 'reply-to' are possible. So does anyone know how to do it with Sendgrid?


Solution

  • Yes that is possible to do with SendGrid. To add multiple 'reply-to' entries you have to use custom headers.

    So in Python, you would add:

    message.add_header("Reply-To", "user1@email.com, user2@email.com")