|
|
 |
| |
ASP
Scripts & Resources > Sent
E-mail with CDO |
| |
| |
|
ตัวอย่างสคริปต์แบบ CDO
|
| |
Mail
Script and Confirmation Page : sendmail.asp |
| |
sTo
= "support@abcd1234.com"
sFrom = Trim(Request.Form("txtFrom"))
sSubject = Trim(Request.Form("txtSubject"))
sMailServer = "127.0.0.1"
sBody = Trim(Request.Form("txtBody"))
if
Request("__action")="TestEMail"
then
TestEMail()
end if
Sub
TestEMail()
Set objMail
= Server.CreateObject("CDO.Message")
Set objConf = Server.CreateObject("CDO.Configuration")
Set objFields = objConf.Fields |
|
| |
|
| |
ไฟล์ตัวอย่างสคริปต์
สามารถ FTP ดาวน์โหลดได้ที่
httpdocs/test/asp/test_mail.asp |
| |
|
| |
คลิกดูตัวอย่าง
Demo |
| |
|
| |
|
|
 |
|
|
|
|