dword-design / nuxt-mail

Adds email sending capability to a Nuxt.js app. Adds a server route, an injected variable, and uses nodemailer to send emails.
Other
239 stars 18 forks source link

You have to provide to/cc/bcc in all configs #119

Closed franciscoGPS closed 6 months ago

franciscoGPS commented 2 years ago

I'm having this error while running an app with nuxt-mail. Is this error known for someone?

Thanks in advance!

image

dword-design commented 2 years ago

I guess you have a message config without to or cc or bcc like the error states. Can you show me your nuxt-mail config?

nezlicodes commented 6 months ago

@dword-design, I'm having the same build error:

Here's my config, I tried adding cc and bcc fields but still getting the error. Any hint on how to fix this ?

[ "nuxt-mail", { message: { to: process.env.EMAIL_TO, cc: process.env.EMAIL_TO, bcc: process.env.EMAIL_TO, }, smtp: { host: "smtp.gmail.com", port: 587, auth: { user: process.env.EMAIL_USER, pass: process.env.EMAIL_PASS, }, }, }, ],

nezlicodes commented 6 months ago

@franciscoGPS @dword-design fixed this by adding the correct variable values in my prod .env file.

tim3ks commented 4 months ago

message: { to: process.env.EMAIL_TO, cc: process.env.EMAIL_TO, bcc: process.env.EMAIL_TO, },

how to pass from client side in nuxt 3 email 'to' ?

dword-design commented 4 months ago

@tim3ks Not possible due to security.

Loosie94 commented 3 months ago

@dword-design

Is this possible with a HTML form, keeping the original "to" e-mail address?