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

[v3] Warning about missing email adapter even though it is configured #6223

Open
genox opened this issue May 5, 2024 · 0 comments
Open

[v3] Warning about missing email adapter even though it is configured #6223

genox opened this issue May 5, 2024 · 0 comments
Labels
[possible-bug] Possible bug which hasn't been reproduced yet

Comments

@genox
Copy link

genox commented May 5, 2024

Link to reproduction

No response

Describe the Bug

My config contains this email section:

  email: nodemailerAdapter({
    defaultFromAddress: process.env.SMTP_FROM_ADDRESS || '',
    defaultFromName: 'Payload',
    transport: nodemailer.createTransport({
      host: process.env.SMTP_HOST || '',
      port: process.env.SMTP_PORT ? parseInt(process.env.SMTP_PORT) : 587,
      auth: {
        user: process.env.SMTP_USER || '',
        pass: process.env.SMTP_PASS || '',
      },
    }),
  }),

But I still get this warning when running payload:

WARN: No email adapter provided. Email will be written to console. More info at https://payloadcms.com/docs/email/overview.

Not sure if I am doing something wrong or whether this is a bug? I wasn't able to test the adapter yet, but either it isn't picked up or something else is going on :)

To Reproduce

  • add a nodemailer adapter
  • see error

Payload Version

beta24

Adapters and Plugins

No response

@genox genox added the [possible-bug] Possible bug which hasn't been reproduced yet label May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[possible-bug] Possible bug which hasn't been reproduced yet
Projects
None yet
Development

No branches or pull requests

1 participant