docs: Update docs for domain or email verification #1145
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
If you are just testing this out in development and follow the instructions either here on github or inside the sendgrid web app it never mentions you must first verify a "from" domain or single address.
You will simply receive a 403 forbidden response on trying to send any mail, including the example email.
The error response does contain an error message though by default it won't be visible due to the way node simplifies deeply nested objects in
console.log
, as you can see below.The actual error message does display if you know where to look
error.response.body
but at first glance and from the current docs you just think maybe your API keys aren't set up right.One or two lines in the docs should prevent this.
I think some people will benefit from this PR including probably some people who found their way here
Checklist