Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no confirmation email is sent #12

Closed
L1nberal opened this issue Nov 11, 2022 · 5 comments
Closed

no confirmation email is sent #12

L1nberal opened this issue Nov 11, 2022 · 5 comments

Comments

@L1nberal
Copy link

I've installed the plugin and do whatever the docs say and I do create tokens that allow accounts to log in. However, I have to copy the token manually then put it into the API to log in. Tokens are generated even though errors pop up and my Gmail account doesn't receive any confirmation emails.

@r0und3r
Copy link

r0und3r commented Nov 12, 2022

I have the same issue. Calling the /api/passwordless/send-link endpoint returns a 400:

{
    "data": null,
    "error": {
        "status": 400,
        "name": "Error",
        "message": "Forbidden",
        "details": {}
    }
}

The token gets created and the exception gets raised when attempting to send the email.

Here it fails (strapi-plugin-passwordless/server/services/passwordless.js:118-121):

// Send an email to the user.
      return await strapi
        .plugin('email')
        .service('email')
        .send(sendData);

I have configured sendgrid as the email provider and the test mails are getting send out correctly.

@kucherenko
Copy link
Owner

Thank you for the report, could you please provide more information about your strapi configuration?

What is the version of strapi? What is the version of the plugin? Do you have configured email plugin (https://docs.strapi.io/developer-docs/latest/plugins/email.html)? What is the mailing service used?

@r0und3r
Copy link

r0und3r commented Nov 14, 2022

Thank you for your reply!

Strapi v4.5.0 is running on a dev server in development mode with this configuration:

"dependencies": {
    "@strapi-community/strapi-provider-upload-google-cloud-storage": ">=4.2.3",
    "@strapi/plugin-i18n": ">=4.5.0",
    "@strapi/plugin-sentry": ">=4.5.0",
    "@strapi/plugin-users-permissions": "^4.4.5",
    "@strapi/provider-email-sendgrid": "^4.4.5",
    "@strapi/strapi": ">=4.5.0",
    "pg": "^8.7.3",
    "strapi-plugin-passwordless": "^4.0.8"
  }

Sendgrid as the mailservice is properly configured, the test emails are send out correctly.

@r0und3r
Copy link

r0und3r commented Nov 14, 2022

I resolved the issue. In my case it was a wrongly configured sender email address in the passwordless configuration since sendgrid needs an email address which is verified with sendgrid. That lead to the following sendgrid error:

The from address does not match a verified Sender Identity. Mail cannot be sent until this error is resolved. Visit https://sendgrid.com/docs/for-developers/sending-email/sender-identity/ to see the Sender Identity requirements

@kucherenko
Copy link
Owner

@r0und3r thank you for the update, @L1nberal do you have any results, are you still need help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants