ต้องทำอย่างไงครับหมายถึงเอาไปไว้ส่วนไหนของโค้ด
<%
Dim strTo,strSubject,strBody,strName,strCostID
strTo=Request.form("emil_to")
strSubject=Request.form("subject")
strName=Request.form("name")
strCostID=Request.form("costid")
On error resume next
Dim mySmartMail
strName=Request.form("name")
Set mySmartMail = Server.CreateObject("aspSmartMail.SmartMail")
mySmartMail.Server = "192.168.1.100"
' From
' ****
mySmartMail.SenderName = "Cost Sheet Online System "
mySmartMail.SenderAddress = "[email protected]"