home *** CD-ROM | disk | FTP | other *** search
- <html>
- <head>
- <title>AdvSMTP Component</title>
- </head>
- <body>
- <%
- dim SMTP
- set SMTP = Server.CreateObject("AdvSMTP.SMTP")
- SMTP.Bcc = Request.Form ("bcc")
- SMTP.Body = Request.Form ("Body")
- SMTP.Cc = Request.Form ("cc")
- SMTP.LogFile = Request.Form ("LogFile")
- SMTP.Logging = Request.Form ("Logging")
- SMTP.Priority = Request.Form ("Priority")
- SMTP.CustomHeader Request.Form("MailerID"), Request.Form("MailerValue")
- if (Request.Form("MimeAttach1") <> "") then
- SMTP.MimeAttach Request.Form("MimeAttach1"),Request.Form("Delete1")
- end if
- if (Request.Form("MimeAttach2") <> "") then
- SMTP.MimeAttach Request.Form("MimeAttach2"),Request.Form("Delete2")
- end if
- if (Request.Form ("Port") <> "")then
- SMTP.Port = Request.Form ("Port")
- end if
- if (Request.Form("Receipt") = "On")then
- SMTP.Receipt = true
- else
- SMTP.Receipt = false
- end if
- if (Request.Form("Lookup") = "On")then
- SMTP.Lookup = true
- else
- SMTP.Lookup = false
- end if
-
- SMTP.Server = Request.Form ("Server")
- SMTP.Subject = Request.Form ("Subject")
- SMTP.Type = Request.Form ("Type")
- if (Request.Form ("charsperline") <> "")then
- SMTP.CharsPerLine = Request.Form ("charsperline")
- end if
-
- SMTP.SendMail Request.Form("From"), Request.Form("To")
- if (SMTP.IsError = 1) then
- Response.Write "Error : "&SMTP.ErrorReason & "<br>"
- else
- Response.Write "Successfully Done" & "<br>"
- end if
-
- set SMTP = Nothing
- %>
- <a href="dsp_sendmail.htm">Back</a>
- </body>
- </html>
-