如何使用BootStrap发送电子邮件而不用服务器端代码? [英] How I Can Send Email With BootStrap whithout server side code ?

查看:76
本文介绍了如何使用BootStrap发送电子邮件而不用服务器端代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我用BootStrap创建一个页面,我希望在Android中的Webview中拍摄它!

如何在任何服务器端使用php或asp发送电子邮件代码?

Plz帮助...... :)

谢谢

Hi
I make a page with BootStrap and I want shot it in Webview in android !
How I can Sent Email Without Use php or asp on any server side code ?
Plz Help ... :)
Thanks

推荐答案

Bootstrap只是javascript。您可以使用以下内容:



Bootstrap is just javascript. You could use the following:

function sendMail() {
    var link = "mailto:my@example.com"
             + "?cc=myCCaddress@example.com"
             + "&subject=" + escape("This is my subject")
             + "&body=" + escape(document.getElementById('myText').value)
    ;

    window.location.href = link;
}





这将在调用机器上打开带有设置元素的邮件客户端。



如果您想从服务器发送,那么您必须拥有服务器代码。您可以通过AJAX访问它。





如果这有帮助,请花些时间接受解决方案。



This will open mail client on the calling machine with set elements.

If you want to send from your server then you HAVE to have server code. You could access it via AJAX.


If this helps, please take time to accept the solution.

这篇关于如何使用BootStrap发送电子邮件而不用服务器端代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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