Hi
I got a API key: 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
from sendGrid.
I wrote codes for send an Email on form submission. It is not work, but after preview I saw " message:"success".
Thank you in advance.
![](https://static.wixstatic.com/media/a27d24_02e020dba2b349178916e68a8f2ecd7b~mv2.png/v1/fill/w_980,h_354,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/a27d24_02e020dba2b349178916e68a8f2ecd7b~mv2.png)
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
Hi Jack,
I've tried your code and it works for me. I replaced the recipient with my email address and received the email.
Did you check the spam folder?
If it's not there, I assume the email might be automatically rejected by the recipient's mail server (yahoo.com) because the domain of the sending server probably didn't match to the domain of the sender (outlook.com).
As far as I know, in your SendGrid account you have to add a record for SendGrid mail servers to your domain in order to verify it (see "Settings" → "Sender Authentication"). After that, it's better to use the domain for the sender (let's say, if you've verified "em1234.example.com", the sender should be "name@example.com" so that the domain of the mail server matches to the domain of the sender).