From 4576416ab010a774e6d1aeeabc2e1a5fbfaa2253 Mon Sep 17 00:00:00 2001 From: Aaron 'Rails/Flutter' Kelton <6170077+aaronkelton@users.noreply.github.com> Date: Sun, 17 Jul 2022 15:13:12 -0500 Subject: [PATCH] advise user to replace test@example.com with their verified Sender Identity Using the default values supplied can confuse a new user why their email isn't getting sent. As supplied, the `response` returns an error: > The from address does not match a verified Sender Identity. Mail cannot be sent until this error is resolved. Visit https://sendgrid.com/docs/for-developers/sending-email/sender-identity/ to see the Sender Identity requirements ``` #["nginx"], "date"=>["Sun, 17 Jul 2022 20:06:44 GMT"], "content-type"=>["application/json"], "content-length"=>["281"], "connection"=>["close"], "access-control-allow-origin"=>["https://sendgrid.api-docs.io"], "access-control-allow-methods"=>["POST"], "access-control-allow-headers"=>["Authorization, Content-Type, On-behalf-of, x-sg-elas-acl"], "access-control-max-age"=>["600"], "x-no-cors-reason"=>["https://sendgrid.com/docs/Classroom/Basics/API/cors.html"], "strict-transport-security"=>["max-age=600; includeSubDomains"]}> ``` --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index b6d422e1..0222f616 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,7 @@ The following is the minimum needed code to send an email with the [/mail/send H require 'sendgrid-ruby' include SendGrid +# replace 'test@example.com' with your verified Sender Identity from = SendGrid::Email.new(email: 'test@example.com') to = SendGrid::Email.new(email: 'test@example.com') subject = 'Sending with Twilio SendGrid is Fun'