G
Guest
I'm trying to send email from an aspx page. Here is my code. It gives me an
error message
"Could not access 'CDO.Message' object."
What do I need to do? This is on my local machine and I installed SMTP
server and it is running. Operating system is Windows XP Professional
Private objMailMessage As New MailMessage
objMailMessage.From = "(e-mail address removed)"
objMailMessage.To = dvDataView(0)("Email")
objMailMessage.Subject = "Please take this survey."
objMailMessage.Body = "Dear " & sFirstName & " " & _
sLastName & "," & vbCrLf & _
"Please take this survey. Follow the link below. " & vbCrLf & " " & _
LinkToPage & _
"?ProjectNumber=" & sProjSeq & _
"&ProjectName=" & sProjName & _
"&Description=" & sDescription & _
"&Scorer=" & sScorer
SmtpMail.Send(objMailMessage)
error message
"Could not access 'CDO.Message' object."
What do I need to do? This is on my local machine and I installed SMTP
server and it is running. Operating system is Windows XP Professional
Private objMailMessage As New MailMessage
objMailMessage.From = "(e-mail address removed)"
objMailMessage.To = dvDataView(0)("Email")
objMailMessage.Subject = "Please take this survey."
objMailMessage.Body = "Dear " & sFirstName & " " & _
sLastName & "," & vbCrLf & _
"Please take this survey. Follow the link below. " & vbCrLf & " " & _
LinkToPage & _
"?ProjectNumber=" & sProjSeq & _
"&ProjectName=" & sProjName & _
"&Description=" & sDescription & _
"&Scorer=" & sScorer
SmtpMail.Send(objMailMessage)