I have this program working fine if I don't send any attachment. Once I do I encounter this error which line 69 is
objMsg.Attachfile FileAttachment
Error Type:
Microsoft VBScript runtime (0x800A01B6)
Object doesn't support this property or method
/hfrrf/Administrator_email.asp, line 69
Can someone please help me figure out why I am encountering this problem.
Thanks,
Judy
<%
FileAttachment = Session("uploadfilename")
SUBMITTED = Request.Form("SUBMITTED")
If SUBMITTED = "TRUE" Then
COMMENTS = Request.Form("COMMENTS")
' build email message
MM = Chr(10) & Chr(13)
MM = COMMENTS
' build mailing list
Set oRSMem=Server.CreateObject("ADODB.Recordset")
sqlString= "SELECT EmailAddress FROM Member WHERE MailingList = True;"
oRSMem.Open sqlString, objConn
MailList = ""
Do While NOT oRSMEM.EOF
MailList = MailList & oRSMem("EmailAddress") & ";"
oRSMem.MoveNext
Loop
oRSMem.Close
Set oRSMem = Nothing
Set objMsg = Server.CreateObject("CDONTS.NewMail")
objMsg.From = "
[email protected]"
objMsg.BCC = MailList
objMsg.Subject = "Fund News Update"
objMsg.Body = MM
If Session("UploadFileName") <> " " Then
objMsg.Attachfile FileAttachment
End If
objMsg.Send
Set objMsg = Nothing
URL = "Administrator.asp"
Response.Redirect(URL)
End If
%>