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

306
Vistas
How can I capture the data from an html form, process it with azure function and send a mail?

I have a simple form made in html5 and css (the fields are "name" and "email"), I created an azure function in javascript that should be in charge of taking the form data, processing it and sending an email to the same email as the user login using sendgrid, any idea how to do it?...thank you

about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

If someone runs a static website without a WebApp server or virtual machine, then to add additional functionality you would normally need dedicated infrastructure to provide. Azure Functions comes here to save us, Azure Functions are priced on execution time and are cheap compared to running a WebApp server.

Coming back to your problem, to achieve your goal you have to follow the steps mentioned below, but instead of using JavaScript function we would use .NET function as it would be simple -

  • Write a frontend with HTML5 and jQuery. Create a form along with an input type for our email address and a submit button. Use jQuery and a Ajax call to POST the email address to our Azure Function url. Check this Microsoft tips & tricks page for the sample code.

  • Create the first function, HTTP trigger function to push messages into the queue. The purpose of this function is to push email content into a queue so that when the queue trigger will happen later by another function, that function will read the content from the queue.

  • Sign up for a SendGrid account, To send email using SendGrid, we should have SendGrid API Keys. Create a free SendGrid account and create API Key from settings.

  • Create the second function, Queue trigger function to pull messages from the queue and send an email. The purpose of this function is to process queue and read content from the queue and send emails as SendGridMessage.

Check the Building a Simple Contact Form with Azure Functions, How to create an email subscription with Azure Functions - Sending Emails and this blog for more information.

about 4 years ago · Santiago Trujillo 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