Created
March 16, 2019 01:19
-
-
Save msato0731/2196436c7487d40562433ae2df6470be to your computer and use it in GitHub Desktop.
blog Sendgridでメールのワンクリック配信停止を実装する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"personalizations": [ | |
{ | |
"to": [{"email": "hoge@example.com"}] | |
} | |
], | |
"from": {"email": "sender@example.com"}, | |
"subject": "メール件名", | |
"content": [ | |
{ | |
"type": "text/plain", | |
"value": "メール本文\r\nリンク:https://sendgrid.kke.co.jp\r\n配信停止はこちら:<%asm_group_unsubscribe_raw_url%>" | |
}, | |
{ | |
"type": "text/html", | |
"value": "メール本文<br><a href='https://sendgrid.kke.co.jp'>リンク</a><br>配信停止は<a href='<%asm_group_unsubscribe_raw_url%>'>こちら</a>" | |
} | |
], | |
"asm": { | |
"group_id": 0000 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment