jsã ã使ã£ã¦ã¡ã¼ã«ãéããä¸ã®ä¸ããã
便å©ã§ãã
- MailChimpãMandrillã¨ããã¡ã¼ã«å°éã®BaaSã®ãããªãã¨ããã£ã¦ã
- Transactional Email from MailChimp - Mandrill
- xhrã§postããã¨ã¡ã¼ã«ãéãã
- via:
- 12,000é/æã¾ã§ç¡æ
- Mandrill - Transactional Email from MailChimp
- mailchimpã®ããã«ããã·ã¥ãã¼ãã§ãéå°ãã§ãã¯ã¨ãéãå´ãç¥ãããæ å ±ãç¥ããæ©è½ã使ãã
- htmlã¡ã¼ã«ã¨ããç»ååè¾¼ã¨ããæ·»ä»ãã¡ã¤ã«ã¨ãã¡ã¼ã«ã«æ¬²ãããã®ãã²ã¨éãã§ãã
- Messages API | Mandrill
ãã£ã¦ã¿ã
- mandrillã§ãµã¤ã³ã¢ãããã¦ãapi keyãããæé
- å²æ
- ä»è¦ã¦ããã¼ã¸ã®ã¿ã¤ãã«ã件åãbodyè¦ç´ ãæ¬æã«ããhtmlã¡ã¼ã«ãéã
# éããã¼ã¿ä½ã£ã¦ data = key: "ããã«apikey" message: from_email: "å·®åºäººã¡ã¢ã" to: [ email: "ããã«å®å ã¡ã¢ã" name: "å®å 人ã®åå" type: "to" ] autotext: "true" subject: document.title html: document.body.innerHTML # ãã¹ã xhr = new XMLHttpRequest() xhr.open "POST","https://mandrillapp.com/api/1.0/messages/send.json",true xhr.setRequestHeader "Content-Type","application/json" xhr.send JSON.stringify(data)
使ãé
- éæã®ããã«ä½¿ã£ã¦ãããã¨ã§èªããã使ããªããã¼ã¸ããã
- 代ããã«ãmandrill使ã£ã¦ã¡ã¼ã«é£ã°ãããã¯ãã¼ã¯ã¬ããã«ä½¿ã£ã¦ã
-
githubã¨ãããã¨ã§èªãã«é£ã°ããªããã¼ã¸ãå¢ãã¦ãã
- chromeã ã¨ãããªã¨ã©ã¼ãã§ã
Refused to load the script 'http://atode.....' because it violates the following Content Security Policy directive: "script-src 'self' https://github.global.ssl.fastly.net https://ssl.google-analytics.com https://collector-cdn.github.com https://analytics.githubapp.com https://embed.github.com https://raw.github.com".
ã§ãpocketã¨ãifftã¨ãæãåºãã®ãã¡ãã£ã¨é¢å