我寫了這個簡單的代碼:「電子郵件地址:」不發送電子郵件
var email;
do {
email = prompt('Inserisci il tuo indirizzo eMail');
if ((email.indexOf("@") == (-1)) || (email == "") || (email == undefined)) {
alert("Inserisci un indirizzo mail valido");
}
}
while ((email.indexOf("@") == (-1)) || (email == "") || (email == undefined));
var subject = ('My Armchair');
var body = new Array();
body[0] = sessionStorage.getItem('imuno');
body[1] = sessionStorage.getItem('imdue');
location.href = "mailto:[email protected]" + email + '?subject=' + subject + '&body=' + body[0] + body[1];
location.href = "../index.html";
的檢查是好的,但它不發送電子郵件,有人知道這是爲什麼?謝謝!
是的,我知道,謝謝你的回覆!請閱讀我的其他評論! –
請閱讀我的答案在其整體,我給你的伎倆既打開電子郵件頁面,並重定向訪問者:) – chadrien
OPS對不起,我錯過了那部分! :) –