SendGrid: When several same `to` requested, only one message send.
This is memo.
Using service
- SendGrid
- Web API - v2 Mail Send
Purpose
- Request serveral same
to
- Send message to each
to
That i do
- use x-smtpapi header set To, Substitution, and Unique Arguments
- x-smtpapi has set as like below
{ "to": [ "foo@example.com", "foo@example.com" ] }
{ "sub": { "%name%": ["John", "Paul"] } }
{ "unique_args": {"key": "%name%" } } - Text has set as like below
This is mail. Your name is %name%.
Results
- Only one message has sent. Why???
Action
- When same
to
appeared, send request by other session
OWARI.