This is one of the subscription scripts wrote, and I can't figure out why it won't work. Can anyone help? Note: This is an include file, and doesn't run by itself.
Code:
<%
If blnEmail = True AND strMode <> "edit" Then
Dim rsSubcriptions
Dim objCDOMail
Set rsSubscriptions = Server.CreateObject("ADODB.Recordset")
strSQL = "SELECT * FROM subscribers;"
rsSubscriptions.CursorType = 2
rsSubscriptions.LockType = 3
rsSubscriptions.Open strSQL, strCon
Do UNTIL rsSubscriptions.EOF
strEmailSubject = strLangSubjectEmailNewBlog
strEmailBody = strLangEmailHi & rsSubsciptions.Fields("subscriber_name")
strEmailBody = strEmailBody & "<br><br>" & strLangEmailBodyBlog1 & ""
strEmailBody = strEmailBody & "<br>" & strLangEmailBodyBlog2 & ""
strEmailBody = strEmailBody & "<br><br><b>" & strLangFormTitle & ": </b>" & blog_titolo
strEmailBody = strEmailBody & "<br><b>" & strLangFormText & ":</b><br>" & blog_testo
Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
objCDOMail.From = Ublogname
objCDOMail.To = rsSubsciptions.Fields("subscriber_email")
objCDOMail.Subject = strEmailSubject
objCDOMail.Body = strEmailBody
objCDOMail.BodyFormat = 0
objCDOMail.MailFormat = 0
objCDOMail.Importance = 1
objCDOMail.Send
rsSubscriptions.Movenext
Loop
Set objCDOMail = Nothing
rsSubscriptions.Close
Set rsSubscriptions = Nothing
End If
%>