Answer the question
In order to leave comments, you need to log in
Why are emails not coming from localhost?
I create sending letters during registration, the site is still on localhost
In index.js
const sgMail = require('@sendgrid/mail'); // sendgrid
sgMail.setApiKey(keys.SENDGRID_API_KEY); // sendgrid
await sgMail.send(regEmail(email)); // sendgrid
{
accepted: [ '***@gmail.com' ],
rejected: [],
envelopeTime: 121,
messageTime: 163,
messageSize: 446,
response: '250 Ok: queued as ***JSKcEA',
envelope: { from: '***@gmail.com', to: [ '***@gmail.com' ] },
messageId: '<***[email protected]>'
}
Answer the question
In order to leave comments, you need to log in
You are using a mailing address that does not belong to you. For letters to reach you, you need to:
1. Create a domain and warm it up. Send manually several emails with different but adequate content
2. Authorize the domain in sendgrid and configure the spf signature there
3. Repeat the procedure
Btw, four years ago I sent emails with gmail, everything worked fine, but spam filters are not in place, and the domain check is done via reverse dns, and sendgrid doesn't own gmail.com and can't confirm it, so the mail ends up in spam or doesn't fit the filters at all.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question