473,396 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Determine if email bounced back

dw
Hi. I accidentally posted this to the German version ("de") of this
newsgroup until I realized my mistake -- sorry!

We're using the subroutine below to send emails via our classic ASP
apps. However, we'd like to know if an email address isn't good -- in other
words, it bounced back. Is there a way to do that with the CDOSYS email
method? The From email is just some generic text and not a real email
address in our apps.

One brute force technique is to hit the Active Directory and see if the
email's on it. Is there any other way? Does the CDOSYS method throw any
errors that can be trapped? It sends emails to bad email addresses just as
quietly as to good ones. Thanks.
Sub
sendMail_CDOSYS(prmMailFrom,prmMailTo,prmMailCC,pr mMailSubject,prmMailBody)
Dim objCDOSYSMail, objCDOSYSCon

Set objCDOSYSMail = Server.CreateObject("CDO.Message")
Set objCDOSYSCon = Server.CreateObject ("CDO.Configuration")

With objCDOSYSCon
.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") =
"myExchangeServer.myDomain.com"
.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport")
= 25
.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout")
= 60
.Fields.Update
End With

With objCDOSYSMail
Set .Configuration = objCDOSYSCon
.From = prmMailFrom
.To = prmMailTo
If Not IsNull(prmMailCC) And Len(Trim(prmMailCC)) > 0 Then .CC =
prmMailCC ' If there is a CC passed in, set the CC field to it.
.Subject = prmMailSubject
.HTMLBody = prmMailBody
.Send
End With

Set objCDOSYSMail = Nothing
Set objCDOSYSCon = Nothing
End Sub

Apr 5 '06 #1
1 2253
Gazing into my crystal ball I observed "dw"
<co****************@uncw.edu> writing in
news:#c**************@TK2MSFTNGP03.phx.gbl:
One brute force technique is to hit the Active Directory and see if
the email's on it. Is there any other way? Does the CDOSYS method
throw any errors that can be trapped? It sends emails to bad email
addresses just as quietly as to good ones. Thanks.


You can take a look at <http://centralops.net/co/EmailDossier.vbs.asp> and
see if that might help you.

--
Adrienne Boswell
Please respond to the group so others can share
http://www.cavalcade-of-coding.info
Apr 6 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: siliconmike | last post by:
Hi, I'm looking for a reliable script that would connect to a host and somehow determine whether an email address is valid. since getmxrr() only gets the mx records.. Links/pointers ? Mike
7
by: VK | last post by:
Hello: Since our application uses ASP, I am posting this in this group. Pardon if wrong group. Our product/application replies a lot on bounced back emails, that way we correct this and let...
7
by: Monty | last post by:
I've written a simple e-newsletter app using the PHP mail() command. I want to be able to deal with bounce-backs if a member's email is no longer working or is using an old account. I'm using a...
6
by: Bengt Richter | last post by:
It seems lately all my posts have been coming back to me as bounced emails, and I haven't emailed them ;-( I've been getting bounce messages like (excerpt): .......
8
by: Dica | last post by:
i've got a client that wants to be able to review records about IIS generated emails. in his own words, he wants the "ability to track and report message status (i.e. how many messages were sent...
7
by: ad | last post by:
Hi, As title, How to determine if a string is an EMail account?
3
by: Darren Clark | last post by:
HI, I am after some assistance in finding what is the best way to parse through bounce back text...... because each server is different i cant really depend on Line x being the line where the...
3
by: Frank | last post by:
I am attempting to develop a solution where I handle bounced e-mails. I wish to field all bounced emails in a custom email account such a bounced@mycompany.com From the aricle at...
1
by: Stuart Harden | last post by:
We use Exchange 2007, but asp.net programs we have written to send out the mail. Is there an asp.net control to request the bounce backs be to a specific address? We can of course do this on...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.