Hi,
How to send a mail after submit button in Html?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Gopi ChandRank #262 · 9.6K reputationPosted Jun 25, 2015, 3:47 AM EDT
Guest UserRank #816 · 2.8K reputationPosted Jun 24, 2015, 6:14 AM EDT
Gopi ChandRank #262 · 9.6K reputationPosted Jun 24, 2015, 7:59 AM EDT
Davin MartynRank #285 · 8.8K reputationPosted Jun 25, 2015, 1:12 AM EDT
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Jun 25, 2015, 1:33 AM EDT
Like this -
function sendMail() { $.ajax({ type: 'POST', url: 'https://mandrillapp.com/api/1.0/messages/send.json', data: { 'key': 'YOUR API KEY HERE', 'message': { 'from_email': '[email protected]', 'to': [ { 'email': '[email protected]', 'name': 'RECIPIENT NAME (OPTIONAL)', 'type': 'to' } ], 'autotext': 'true', 'subject': 'YOUR SUBJECT HERE!', 'html': 'YOUR EMAIL CONTENT HERE! YOU CAN USE HTML!' } } }).done(function(response) { console.log(response); // if you're into that sorta thing }); }Nilesh JadavRank #109 · 20.3K reputationPosted Jun 25, 2015, 2:18 AM EDT
If you are using html then make it like this :
Send e-mail to [email protected]:
and if you want to send email usign asp.net using C# then refer this link :
http://www.csharptutorial.in/16/csharp-net-how-to-send-email-from-gmail-using-c-sharp
Thank you !
Jaipal ReddyRank #588 · 4.1K reputationPosted Jun 25, 2015, 4:16 AM EDT
Gopi ChandRank #262 · 9.6K reputationPosted Jun 28, 2015, 9:35 PM EDT
Ananth GRank #1,176 · 1.5K reputationPosted Oct 21, 2016, 1:44 AM EDT