Comments (2)
Does it work when you first sign up in your localhost?
I mean when you first try to sign up, verifying email sent to your email address well?
actually to test this email send in localhost, you need to configure your own SendGrid account and configure SENDGRID_API_KEY
, SENDGRID_EMAIL
prop in the server/dotenv/.env
file.
SENDGRID_EMAIL
is the email address like [email protected]
. so If you have configured your own sendgrid account, you need to put your email address to SENDGRID_EMAIL
.
related sendgrid documentation:
Step 1. Create your account
Step 2. Creating an API key
Step 3. How to set up domain authentication
and also I found some bug in server code related to this issue. so you can fix and create PR on it. 👍
look at the mutation.ts.
- the parameter "from" in SendGridMail.send() method in the two resolver
sendVerification
andfindPassword
have different value.- one (sendVerification) is
SENDGRID_EMAIL
variable fromprocess.env
,
const msg: MailDataRequired = { to: email, from: SENDGRID_EMAIL, <<------- subject: ctx.request.req.t('VERIFICATION_EMAIL_SUBJECT'), html, }; await SendGridMail.send(msg);
- and the other(findPassword) is just string value(
[email protected]
).
const msg = { to: email, from: '[email protected]', <<------- need to be changed to 'SENDGRID_EMAIL' or SENDGRID_EMAIL || '[email protected]' subject: ctx.request.req.t('PASSWORD_RESET_EMAIL_SUBJECT'), html: getPasswordResetHTML(verificationToken, password, ctx.request.req), }; try { await SendGridMail.send(msg);
- one (sendVerification) is
I think the parameter in findPassword
resolver should be replaced with SENDGRID_EMAIL variable for consistency.
I created my own sendgrid account and tried to replace the from param with my own email address in SendGridMail.send(), it worked well. please refer to it.
from hackatalk.
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions.
from hackatalk.
Related Issues (20)
- bug: wrong spec for multiple files upload HOT 2
- inline dotenv does not work any longer
- Clickable Links / URL HOT 2
- Improve a signIn function to validate a email & password correctly HOT 1
- login page animation starting location issue HOT 3
- Implement a feature which can invite friends in chatroom. HOT 1
- Editing message should be saved when left the room. HOT 8
- Improvement of notifying sign in error HOT 7
- Status message could be overflowing text content area HOT 3
- License Agreement Message is hidden in website. HOT 5
- Create empty channel (Self Chat?) HOT 3
- Delete messages feature HOT 3
- Delete same channel notification if enter the chat channel. HOT 4
- Old relay types are being used
- Tag users
- Upload movie clip in [Message] HOT 4
- Voice message
- File Upload
- Sunset Alert: Attention Required!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hackatalk.