Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

277
Vistas
How to send an email to an address from user input feild in React.js/Express.js?

I am making a basic email app where a user can send an email to whomever they like. I want to be able to send an email to user-specified email address. I can't use nodemailer because it requires password and user.id and I dont want to ask for a password from the user.

I have been searching Google for two days now and all the I can find is how to send an email to yourself and not to user-generated input.

It would be great if anyone could point me in the right direction.

Thanks!

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Nodemailer has a sendmail transport that allows you to send mail without any authentication.

let transporter = nodemailer.createTransport({
sendmail: true,
newline: 'unix',
    path: '/usr/sbin/sendmail'
});
   transporter.sendMail({
    from: 'sender@your-domain.com',
    to: 'recipient@example.com',
    subject: 'Message',
    text: 'I hope this message gets delivered!'
}, (err, info) => {
    console.log(info.envelope);
    console.log(info.messageId);
});
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda