Giter Club home page Giter Club logo

Comments (2)

geoseong avatar geoseong commented on June 20, 2024 1

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 and findPassword have different value.
        const msg: MailDataRequired = {
          to: email,
          from: SENDGRID_EMAIL, <<-------
          subject: ctx.request.req.t('VERIFICATION_EMAIL_SUBJECT'),
          html,
        };
    
        await SendGridMail.send(msg);
    
      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);
    

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.

stale avatar stale commented on June 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.