Skip to main content

providers/email

default()​

default(config): NodemailerConfig

Parameters​

β–ͺ config: NodemailerUserConfig

Returns​

NodemailerConfig

Deprecated​

Import this provider from the providers/nodemailer submodule instead of providers/email.

To log in with nodemailer, change signIn("email") to signIn("nodemailer")


html()​

html(params): string

Email HTML body Insert invisible space into domains from being turned into a hyperlink by email clients like Outlook and Apple mail, as this is confusing because it seems like they are supposed to click on it to sign in.

Parameters​

β–ͺ params: { host: string; theme: Theme; url: string; }

β–ͺ params.host: string

β–ͺ params.theme: Theme

β–ͺ params.url: string

Returns​

string

Note​

We don't add the email address to avoid needing to escape it, if you do, remember to sanitize it!


text()​

text(__namedParameters): string

Email Text body (fallback for email clients that don't render HTML, e.g. feature phones)

Parameters​

β–ͺ __namedParameters: { host: string; url: string; }

β–ͺ __namedParameters.host: string

β–ͺ __namedParameters.url: string

Returns​

string