Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP General (http://www.velocityreviews.com/forums/f65-asp-general.html)
-   -   CDO.Message problems (http://www.velocityreviews.com/forums/t804233-cdo-message-problems.html)

Andrew Wan 05-16-2008 08:46 AM

CDO.Message problems
 
I use CDO.Message to send mail. The problem is, CDO.Message will send to any
malformed address, (eg. smtp:email.address@domain.com) and no errors are
thrown. That's ok.

Is there any way to receive bounced messages?


Anthony Jones 05-16-2008 03:01 PM

Re: CDO.Message problems
 
"Andrew Wan" <andrew_wan1980@hotmail.com> wrote in message
news:1EDE6F2B-4A83-4FF1-B9CF-B9EDD4907799@microsoft.com...
> I use CDO.Message to send mail. The problem is, CDO.Message will send to

any
> malformed address, (eg. smtp:email.address@domain.com) and no errors are
> thrown. That's ok.
>
> Is there any way to receive bounced messages?
>


Const cdoDSNFailure = 2
Const cdoDNSDelay = 8
Const cdoDispositionNotificationTo =
"urn:schemas:mailheader:disposition-notification-to"

oMsg.Fields(cdoDispositionNotificationTo) = "fail@myemaildomain.com"
oMsg.DSNOptions = cdoDSNFailure ' or cdoDNSDelay
oMsg.Fields.Update

--
Anthony Jones - MVP ASP/ASP.NET




All times are GMT. The time now is 09:00 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.