Wow to send email with js variabl

Is it possible to send a email to me, if my website gets a new input of input html element?

You can use nodemailer to do that.

This might work:

const nodemailer = require('nodemailer');

let transporter = nodemailer.createTransport({
  service: 'gmail', //change this to the email provider
  auth: {
    user: '',
    pass: 'emailpassword'

let sender = '' //Don't know html, so I manually defined them here, but you can use html to set these up.
let reciever = ''

var mailOptions = {
  from: sender,
  to: reciever,
  subject: '<website name> html Input',
  text: `Whatever you want`

transporter.sendMail(mailOptions, function(error, info){
  if (error) {
  } else {
    console.log('Email sent: ' + info.response);

Do note the text input accepts HTML, for more enhanced looking emails