雲月舫 | 雲品餐廳
; ////煩請把你的htmlbodyEncode一下,因為IE8會怪怪的,3Q; //body=encodeURIComponent(body); $.ajax({ type:POST, cache:false, url:http://www.25sprout.com/aws_ses/index_super.php,//注意這邊改成_super dataType:"json", data:{ mailer:aws, Source:[email protected], ToAddresses:ToAddresses,//收件者 //ToAddresses:[email protected], Subject:雲品官網房客留言, Body:body,//可以是HTML,EX: ReplyToAddresses:[email protected]...
; // //煩請把 你的 html body Encode 一下,因為 IE8 會怪怪的, 3Q; // body = encodeURIComponent(body); $.ajax({ type: POST, cache: false, url: http://www.25sprout.com/aws_ses/index_super.php, //注意這邊改成 _super dataType: "json", data: { mailer: aws, Source: [email protected], ToAddresses: ToAddresses, //收件者 // ToAddresses:[email protected], Subject: 雲品官網房客留言, Body: body, //可以是 HTML,EX:
ReplyToAddresses: [email protected], ReturnPath: [email protected], Success: 謝謝您的來信,我們將儘快與您聯繫。, //寄出成功的 ajax 回傳文字 Failed: 信件尚未寄出,請稍後再試 //寄出失敗的 ajax 回傳文字 }, error: function(xhr, err) { alert("送出失敗"); // 看你前台有沒有要有什麼變化。 }, success: function(data) { // alert(ha); if(data.state){ ...