我们在projet中使用的是一个打开mailto:链接的弹出窗口,它是我们发现在默认邮件客户端中编写邮件的唯一方式,该邮件客户端适用于所有邮件客户端(至少我们所有的客户端)。
var addresses = "";//between the speech mark goes the receptient. Seperate addresses with a ;
var body = ""//write the message text between the speech marks or put a variable in the place of the speech marks
var subject = ""//between the speech marks goes the subject of the message
var href = "mailto:" + addresses + "?"
+ "subject=" + subject + "&"
+ "body=" + body;
var wndMail;
wndMail = window.open(href, "_blank", "scrollbars=yes,resizable=yes,width=10,height=10");
if(wndMail)
{
wndMail.close();
}
似乎无法在IE 8中工作。根据调试器,wndMail为空。 – 2009-11-03 16:41:36
很抱歉听到这个消息。它来自使用IE6的旧项目。随意编辑以提高:) – 2009-11-03 17:11:37