需要从HTML页面发送电子邮件 [英] Need to Send Email from HTML pages
问题描述
我创建一个网站作为静态HTML页面。仅在一个联系人页面中,我需要获取用户名和emailId。此信息应发送到具有用户名和emailId信息的特定邮件ID。
I m creating a Website as Static HTML pages. In that only in one contacts page alone i need to get the users name and emailId . This information should be send to a particular mail Id with the information of username and emailId.
我只使用HTML和Javascript,任何人都可以说我如何使它成为可能。
I m using only HTML and Javascript , can anyone say me how to make it possible.
推荐答案
没有任何后端内容,您唯一的选择就是在href中使用mailto。这取决于用户自己发送电子邮件。您可以使用javascript来填充电子邮件.eg
Without any backend stuff your only option is using a mailto in an href. This relies on the user sending the email themselves. You might be able to do something with javascript to populated the email .e.g
"mailto:"+emailTo+"&subject="+subjectText+"&body="+bodyText
这篇关于需要从HTML页面发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!