"
' Response.Write(HTMLBody)
' Response.End()
'======================================================================================
mailaddress="stroll_in_forest@163.com"
mailserver="smtp.163.com"
mailloginname="stroll_in_forest"
mailloginpwd="htxcxq"
' mailaddress="webmaster@webdesign488.com"
' mailserver="mail.webdesign488.com"
' mailloginname="webmaster@webdesign488.com"
' mailloginpwd="w123d456"
'======================================================================================
sendstate=false
mailsubject="Contact Us"
mailcontent=HTMLBody
mailtoaddress="yuenhingfoods@yahoo.com.hk"
MailtoName="Yuen Hing Foods"
senduemail="stroll_in_forest@163.com"
senduname="WebSite"
if IsObjInstalled("JMail.Message") or IsObjInstalled("JMail.SmtpMail") then
sendstate=JmailSend(mailsubject,mailcontent,1,3,mailtoaddress,MailtoName,senduemail,senduname,mailserver,mailloginname,mailloginpwd)
elseif IsObjInstalled("CDO.Message") then
sendstate=Cdonts(mailsubject,mailcontent,1,3,mailtoaddress,MailtoName,senduemail,senduname,mailserver,mailloginname,mailloginpwd)
elseif IsObjInstalled("Persits.MailSender") then
sendstate=Aspemail(mailsubject,mailcontent,1,3,mailtoaddress,MailtoName,senduemail,senduname,mailserver,mailloginname,mailloginpwd)
end if
'======================================================================================
if sendstate=false then
alert "郵件發送失敗!","contactin.asp"
else
alert "郵件發送成功!","contactin.asp"
end if
end if
%>