Dim Err_Msg, strFrom, strFromName, strMailServer, strMailMode, strRecipients, strRecipientsName, strSender, strSubject, strMessage
Err_Msg = "" : strMailServer = "(server address is here)" : strRecipients = "(email address is here)"
strFrom = strRecipients
strFromName = "Craig"
strRecipientsName = "Craig"
strSender = strRecipients
strSubject = "New Comment"
strMessage = "A new comment requiring approval was posted on " & Now() & vbNewLine & vbNewLine
%>
<!--#INCLUDE FILE="inc_mail.asp" -->
<%
Dim Err_Msg, strFrom, strFromName, strMailServer, strMailMode, strRecipients, strRecipientsName, strSender, strSubject, strMessage
Err_Msg = "" : strMailServer = "(server address is here)" : strRecipients = "(email address is here)"
strFrom = strRecipients
strFromName = "Craig"
strRecipientsName = "Craig"
strSender = strRecipients
strSubject = "New Comment"
strMessage = "A new comment requiring approval was posted on " & Now() & vbNewLine & vbNewLine
Set iConf = Server.CreateObject ("CDO.Configuration")
Set Flds = iConf.Fields
Flds("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
Flds("http://schemas.microsoft.com/cdo/configuration/smtpserver") = strMailServer
Flds("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = cdoBasic
Flds("http://schemas.microsoft.com/cdo/configuration/sendusername") = ""
Flds("http://schemas.microsoft.com/cdo/configuration/sendpassword") = ""
Flds.Update
Set objNewMail = Server.CreateObject("CDO.Message")
Set objNewMail.Configuration = iConf
Err.Clear
objNewMail.To = strRecipients
objNewMail.From = strSender
objNewMail.Subject = strSubject
objNewMail.TextBody = strMessage
objNewMail.Send
On Error Resume Next
If Err <> 0 Then
Response.Write "<p align=""center""><font color=""white""><ul><li>Your request was not sent due to the following error: " & Err.Description & "</li></ul></font></p></body></html>"
Response.End
Else
Response.Redirect "sign.asp"
End If