win2k server IIS5
CDO Mail
Using CDO mail, I'm looping through several email addresses and sending
emails. Everything works fine, however, I'd like to set a variable based on
the success or not of the email being sent, i.e.,
<%
CDO Mail stuff...
With objMessage
.To = loopEmail
.From = conFromEmail
.Subject = conSubject
.HTMLBody = conHTML
'****** This is the section I'm trying to set the variable.
'Even though the email is sent, strSent
'always results as the Else clause.
If .Send Then
strSent = "sent"
Else
strSent = "error sending"
End If
'********
End With
CDO Mail stuff....
%>
The emails are being sent, however, the variable for 'strSent' always comes
out to the Else clause which is odd since the email is sent. How can I set
the variable 'strSent' based on the success or not of the CDO message
successfully being sent?
--
kindler chase
http://www.ncubed.com
SuperInvoice: For the Financially Unorganized
news://news.ncubed.com/support
n3 Support Group