描述: 此JavaScript將幫助你的電子郵件的人。只要按一下電子郵件,有人!和JavaScript會要求的電子郵件地址,主題,等等然後你,新的郵件,是向你打開了。 <!-- Begin function mailsome1(){ who=prompt("Enter recipient's email address: ","antispammer@earthling.net"); what=prompt("Enter the subject: ","none"); if (confirm("Are you sure you want to mail "+who+" with the subject of "+what+"?")==true){ parent.location.href='mailto:'+who+'?subject='+what+''; } } // End --> E-Mail Someone! 登入後複製好了,以上所述就是使用javascript實現自動發送郵件的程式碼,程式碼簡單易懂 更多純javascript實現自動發送郵件相關文章請關注PHP中文網!