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