Inspiration

LHD build day 4

What it does

Example of email sending from terminal

How we built it

curl --request POST \ --url https://api.sendgrid.com/v3/mail/send \ --header 'Authorization: Bearer SG.KQ38eq0KSVy2iBCLrsmnkQ.tVhZnRubJnvEN-ChYuYJc3xE21??l3cGXdnZdp43453DfZxM3QQ' \ --header 'Content-Type: application/json' \ --data '{"personalizations":[{"to":[{"email":"kk293781@gmail.com","name":"krishna kumar"}],"subject":"LHD Build Day 4!"}],"content": [{"type": "text/plain", "value": "Completed the challenge --Use the Sendgrid API"}],"from":{"email":"2018ugcs0779@nitjsr.ac.in","name":"krishna_007"},"reply_to":{"email":"2018ugcs0770@nitjsr.ac.in","name":"krishna_007"}}'

Built With

Share this project:

Updates