如何通过HTML页面直接发送电子邮件? [英] How to send email direct through HTML Page?

查看:161
本文介绍了如何通过HTML页面直接发送电子邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



如何直接通过HTML页面发送电子邮件而不使用MAILTO?

我想通过html页面直接发送电子邮件。



怎么可能?

我们可以使用JavaScript或Jquery吗?如果是的那么,怎么可能呢?



先谢谢。



Ankit Agarwal

软件工程师

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

推荐答案

您不能仅使用JavaScript / jQuery直接发送邮件。您需要使用服务器端语言(ASP.NET,PHP,...)直接发送邮件。







如果您使用ASP.NET,请查看有关在ASP.NET中发送邮件的这些文章/提示:

使用或不使用附件在C#中发送电子邮件:通用例程。 [ ^ ]

发送使用ASP.NET和C#的邮件/联系表单 [ ^ ]
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.



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#[^]


很抱歉,如果没有用PHP,ASP,JSP编写的Web应用程序,就无法做到这一点,或CGI等。 HTML,CSS,JavaScript,JQuery都是最终的语言。要发送电子邮件,您需要一个后端应用程序...您可以使用javascript中的xmpp创建聊天应用程序。我不知道是否可能。
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.


试试这个

点击此处获取答案


这篇关于如何通过HTML页面直接发送电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆