We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ff66ce commit 38f6af4Copy full SHA for 38f6af4
src/nuxt/sendMail.ts
@@ -11,13 +11,12 @@ export const sendMail: ReturnType<typeof createTransport>['sendMail'] = async (
11
) => {
12
if (!transport) {
13
if (process.env.ON_SERVER) {
14
- transport = createTransport({
15
- host: process.env.SMTP_SERVER,
16
- port: 25,
17
- // secure: true, // true for 465, false for other ports
+ transport = createTransport({
+ host: process.env.SMTP_SERVER || '',
+ port: parseInt(process.env.SMTP_PORT || '1'),
18
auth: {
19
- user: process.env.SMTP_USER,
20
- pass: process.env.SMTP_PASS
+ user: process.env.SMTP_USERNAME || '',
+ pass: process.env.SMTP_PASSWORD || ''
21
}
22
})
23
} else {
0 commit comments