Click here to Skip to main content
15,896,448 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello,

How to send email direct through HTML Page without using MAILTO?
I want to send email direct through html page.

How could be possible?
Can we possible using JavaScript or Jquery? If Yes So, How could be possible that?

Thanks in Advance.

Ankit Agarwal
Software Engineer
Posted
Updated 19-Aug-13 21:25pm
v2

You can't send mails directly with only JavaScript/jQuery. You need to use a server-side language (ASP.NET, PHP, ...) to send mails directly.

[EDIT]

If you use ASP.NET, have a look at these articles/tips about sending a mail in ASP.NET:
Sending an Email in C# with or without attachments: generic routine.[^]
Send Mail / Contact Form using ASP.NET and C#[^]
 
Share this answer
 
v3
Sorry to say that you cannot do it without a web applications coded in PHP, ASP, JSP, or CGI,etc. HTML, CSS, JavaScript, JQuery all are frond end languages. To send an email you need a back-end application... You can create a chat application using xmpp in javascript. I don't know is it possible.
 
Share this answer
 
 
Share this answer
 
Comments
[no name] 20-Aug-13 3:27am    
I don't know about PHP,
I am only known ASP.NET.
[no name] 20-Aug-13 4:34am    
Please reply my question.
Manuel john 20-Aug-13 6:17am    
am working on php , if u dnt mind shall i share this link to one of my .netfrnd
Manu V Nath 20-Aug-13 6:22am    
You want open outlook email client?
protected void btnSend_Click(object sender, EventArgs e)
{
string fromEmail = ConfigurationManager.AppSettings["Email"].ToString();
string toEmail = txtEmail.Text;
MailMessage message = new MailMessage(fromEmail, toEmail);
message.Subject = txtSubject.Text;
message.Body = txtBody.Text;

SmtpClient smtp = new SmtpClient();
smtp.Send(message);
}
 
Share this answer
 
Comments
[no name] 20-Aug-13 6:26am    
Sorry buddy!, I can't use .aspx page.
CyberSaint 27-Apr-17 2:11am    
this code is for asp.net mail sending . please provide php regarding help thanks
Send mail functionality only possible in server side not in client side. You have to use server script to send mail. or else only one way to use emailto. it helps to open one default email client in client machine.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900