Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

325
Views
¿Hay alguna manera de enviar mi formulario a una URL y enviar datos a un correo electrónico?

Hola chicos, tengo un formulario simple que debe publicarse en una URL; sin embargo, también me gustaría que los datos se envíen a un correo electrónico. es posible?

Aquí está mi código actual:

 "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Test Form - Overture</title> <script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-2.1.3.js"></script> <script src="https://malsup.github.io/jquery.form.js"></script> <script> // Form to submit via ajax. $("form").ajaxForm({ "clearForm": false, "resetForm": true, "beforeSubmit": function() { }, "success": function(json) { if (json.success == true) { // Form has submitted successfully. alert("Thank you for getting in touch."); window.location.href = "https://www.activetalentagency.com/booking-request-confirmation"; } else { for (name in json.errors) { $("form").find("[name$='" + json.errors[name] + "']").css("border-color", "red"); }; }; }, "error": function() {} }); </script> </head> <body> <form method="post" action="https://overturehq.com/formapi/webform/submit.json"> <h2>Test Form</h2> <label>Name:</label> <input type="text" name="personName" required> <label>Email Address:</label> <input type="text" name="personEmailWork" required> <label>Phone Number:</label> <input type="text" name="personPhoneWork" required> <label>What would you like to discuss with us?</label> <textarea name="personNote"></textarea> <input type="submit" value="Send Enquiry"> <input type="hidden" name="key" value="MTI4NzQxNTE1NzI="> </form> </body> </html>

Espero que haya una manera, incluso si se trata de recopilar los datos de alguna manera y luego enviarlos a ambos lugares, correo electrónico y URL.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Sí, puede publicar los datos de forma asíncrona en una URL y, en la misma función, usar un módulo como nodemailer para generar y enviar de forma asíncrona un correo electrónico con los mismos datos. Realmente puedes hacer cualquier cosa que quieras hacer.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!