====== Integrate SendGrid ====== ===== Reference ===== * [[howto:sendgrid:start|SendGrid]] ===== Step ===== * Add a new [[https://app.sendgrid.com/settings/sender_auth|Single Sender]] * Add a new [[https://app.sendgrid.com/settings/api_keys|API Keys]] * Read [[https://docs.sendgrid.com/api-reference/mail-send/mail-send|Send API]] * Stringify html content, reference [[zh:staff:mao_joe:use_dart_to_write_a_text_converter_app:start|Use dart to write a text converter app]] * Use postman to test POST https://api.sendgrid.com/v3/mail/send request headers { Authorization: Bearer } request body { "personalizations": [ { "to": [ { "email": "clutchjoe@outlook.com" } ] } ], "from": { "email": "joe.mao@gz.questwork.com" }, "subject": "Vue.js前端笔试题", "content": [ { "type": "text/html", "value": "\n\n\n\n\n\n\t
同学你好,
\n\t

请打开以下链接,请仔细阅读题目要求并根据要求完成答题。
\n\t

笔试题链接
\n\t

注意事项:
\n
    \n\t
  • 请将相关答题附件发到邮箱 herbin.xie@gz.questwork.com
  • \n\t
  • 请务必在你的提交邮件中写上你的名字,手机号码和Wechat,否则答题将不予处理
  • \n\t
  • 下一轮的面试会在收回答案并筛选后的1-2个工作日内通过电话或者WeChat进行
  • \n\t
  • 若后续没收到我们的电话或者WeChat联系,即代表本次笔试没有通过
  • \n\t
  • 如有什么问题可以通过招聘平台或者这个邮箱(joe.mao@gz.questwork.com)告知我们
  • \n\t
\n\t
\n\n" } ], // for SendGrid filtering "categories": ["Frontend"], // schedule mail time "send_at": 1667197082 }
If you need to test sending emails later, you can also use postman to perform an http network request as above. ===== Check Schedule emails form SendGrid ===== * Open SendGrid Activity panel, [[https://app.sendgrid.com/email_activity|Link]] {{ :interview:interview_agenda:integrate_sendgrid:screen_shot_2022-11-02_at_00.48.47.png?1200 |}}