Closed waldoj closed 9 years ago
JSON and Mailgun ID stored with 041be1e0fc38214d67552f24f4d05bf494a4d73c.
I've submitted a request for guidance to info@elections.virginia.gov
, regarding to what email address absentee ballot requests should be submitted in the absence of a functioning registrar email address.
In fact, it should sent to info@elections.virginia.gov
. So that was easy.
I think maybe I can abuse tagging to include AB IDs in the message. I just need to verify that the tags are exposed by the bounce webhook.
Yes, tags are included. Bingo.
On second thought, this appears to be the preferred method of attaching data to messages. I just need to figure out if this is exposed via sendMessage()
.
Ah-ha: there is a limit to the number of tags that can be used per account. OK, so it's essential that IDs be passed via X-
headers. And that's better, anyway, for MTA agnosticism.
I decided to use a customer X-AB-ID
header instead of using Mailgun's custom, JSON-encoded header. That will simplify portability.
BOUNCE_API_KEY
X-
header when sending an emailregistrars.json
to mark that registrar's email address as undeliverablesubmit.inc.php
to check to make sure that an email address isn't undeliverableX-AB-ID
header) to identify the application in questioninfo@elections.virginia.gov