How can I best set up Nodemailer in Payload beta so that 1. I receive the message from the contact form and 2. the user receives an e-mail that his message has arrived.
Nodemailer for Payload cannot be installed.
Install error:
pnpm add @payloadcms/email-nodemailer` nodemailer
ERR_PNPM_SPEC_NOT_SUPPORTED_BY_ANY_RESOLVER @payloadcms/email-nodemailer nodemailer isn't supported by any available resolver.
This error happened while installing a direct dependency of F:\SGNetz-Projekte\ramm-news
Progress: resolved 1, reused 0, downloaded 0, added 0Anyone know, how I can config nodemail in v3? Its finaly installed But know I Need some help
I use this in buildConfig
email: nodemailerAdapter({
defaultFromAddress: 'test@test.com',
defaultFromName: 'Test',
transportOptions: {
host: process.env.SMTP_HOST,
port: 587,
auth: {
user: process.env.SMTP_USER,
pass: process.env.SMTP_PASS,
},
},
}),Thx, but know, i got this ..
204 | })
205 | function nodemailerAdapter(arg0: { defaultFromAddress: string; defaultFromName: string; transportOptions: { host: string; port: number; auth: { user: string; pass: string } } }): import("payload").PayloadEmailAdapter | Promise<import("payload").PayloadEmailAdapter> {
> 206 | throw new Error('Function not implemented.')
| ^
207 | }
208 |
209 |
GET /admin 500 in 3959msare you importing it in the config
import { nodemailerAdapter } from '@payloadcms/email-nodemailer'okay ... i forgot it .. its now working

you can mark this as /solve
I Have only one questen, is there a easy way to make a email template? In Payload i can do only basic stuf
you can see how they use the form builder plugin in the website template
I Know the Form Builder, i can setup text and thats it. What i Want is a custom mail template, with logo, colors and some other changes 😦
add the react mail template to the buildconfig in payload?
Here is an example for custom:
verify and forgotPassword email template
you have to return the custom HTML template. in this case, build your email template in react email and paste it somewhere
Star
Discord
online
Get dedicated engineering support directly from the Payload team.