S
Sany
Helo,
I am using myMail.DSNOptions = 14 n a script that uses CDO.Message to
send an internal mail. Is there a way to access the delivery status in
the same script and report a bad route...below is an example I would
like to achieve. Any help is greatly appreciated.
Example:
Sub sendMail(msg)
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Queues|Critical"
myMail.From="(e-mail address removed)"
myMail.To="(e-mail address removed)"
myMail.TextBody=msg
myMail.DSNOptions = 14
myMail.Send
set myMail=nothing
<----------------------------If message not delivered Wscript.echo
"mesage not delivered" else "great job" end if ------------->
End Sub
I am using myMail.DSNOptions = 14 n a script that uses CDO.Message to
send an internal mail. Is there a way to access the delivery status in
the same script and report a bad route...below is an example I would
like to achieve. Any help is greatly appreciated.
Example:
Sub sendMail(msg)
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Queues|Critical"
myMail.From="(e-mail address removed)"
myMail.To="(e-mail address removed)"
myMail.TextBody=msg
myMail.DSNOptions = 14
myMail.Send
set myMail=nothing
<----------------------------If message not delivered Wscript.echo
"mesage not delivered" else "great job" end if ------------->
End Sub