Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Sendgrid Error - Wasp
W
Wasp
•
2y ago
•
29 replies
skyblade2954
Sendgrid Error
const info
= await emailSender
.send
(
{
from
:
{
name
: name
,
email
:
"customer
@requestphotoedit
.com
"
,
}
,
to
:
"mericozcan
.project
@gmail
.com
"
,
subject
: subject
,
text
:
Some text
Some text
,
html
:
Some text
Some text
,
}
)
;
I am trying to send mail
, I authenticate my Sendgrid account
, added DNS configuration and everything and getting this error
:
Access to XMLHttpRequest at
'
https://api.sendgrid.com/v3/mail/send
' from origin
'
https://requestphotoedit.com
' has been blocked by CORS policy
: Response to preflight request doesn
't pass access control check
: The
'Access
-Control
-Allow
-Origin
' header has a value
'
https://sendgrid.api-docs.io
' that is not equal to the supplied origin
.
When I check stackoverflow
, it says I cannot send mail over Javascript code
?
https://stackoverflow.com/questions/54797626/react-unable-to-send-email-with-sendgrid
Help me plz
Stack Overflow
React unable to send email with SendGrid
I am using react to send emails
:
const sgMail
= require
(
'
@sendgrid
/mail
'
)
;
sgMail
.setApiKey
(process
.env
.REACT
_APP
_SENDGRID
)
;
const msg
=
{
to
:
'test
@example
.com
'
,
from
:
'test
@example
.com
'
,
Wasp
Join
Rails-like framework for React, Node.js and Prisma. Build your app in a day and deploy it with a single CLI command.
4,650
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
SendGrid 403 Error
W
Wasp / 🙋questions
2y ago
@sendgrid version
W
Wasp / 🙋questions
9mo ago
SendGrid setup
W
Wasp / 🙋questions
14mo ago
Sendgrid config
W
Wasp / 🙋questions
2y ago