I'm using the below code to to send e-mails and it works fine except it sends when I load the page and I really need it to send it when users click the submit button. I tried the mailto: process in the form action, but my users don't have e-mail on their desktops and that looks for a default e-mail program to send the e-mail so it's not a solution. Any help would be appreciated.
Dim sName, sEmail, sMessage
Dim oCdoMail, oCdoConf, sConfURL
sName = "DoNotReply@test.com"
sMessage = "An Request is awaiting your review."
Set oCdoMail = Server.CreateObject("CDO.Message")
Set oCdoConf = Server.CreateObject("CDO.Configuration")
sConfURL = "http://schemas.microsoft.com/cdo/configuration/"
.Fields.Item(sConfURL & "sendusing") = 2
.Fields.Item(sConfURL & "smtpserver") = "smtp.mail.fedex.com"
.Fields.Item(sConfURL & "smtpserverport") = 25
.From = sName
.To = "email@example.com"
.Subject = "Test"
.TextBody = sMessage
.HTMLBody = sMessage
.Configuration = oCdoConf
Set oCdoConf = Nothing
Set oCdoMail = Nothing