944,004 Members | Top Members by Rank

Ad:
  • ASP Discussion Thread
  • Unsolved
  • Views: 4995
  • ASP RSS
Mar 24th, 2005
0

need help with e-mail validation(asp)

Expand Post »
i can't find a good code to check if e-mail exists. im trying to do this with cdo. maybe someone could sugest some source?
or maybe could help to make it...
here is what im trying to do

<%
Dim iMsg
Dim iConf
Dim Flds
Dim strHTML
set imsg = createobject("cdo.message")
set iconf = createobject("cdo.configuration")
Set Flds = iconf.Fields
With Flds
.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "<SMTP Server>"
.Update
End With
strHTML = "<HTML>"
strHTML = strHTML & "<HEAD>"
strHTML = strHTML & "<BODY>"
strHTML = strHTML & "<b> This is the test HTML message body</b></br>"
strHTML = strHTML & "<hr>"
strHTML = strHTML & "This another section of the message...</BR>"
strHTML = strHTML & "</BODY>"
strHTML = strHTML & "</HTML>"
With iMsg Set
.Configuration = iConf
.To = "<valid e-mail address>"
.From = "<valid e-mail address>"
.Subject = "This is a test CDOSYS message (Setting DSN options)"
.HTMLBody = strHTML
.fields("urn:schemas:mailheader:disposition-notification-to") = "<valid e-mail address>"
.fields("urn:schemas:mailheader:return-receipt-to") = "<valid e-mail address>"
.DSNOptions = cdoDSNSuccessFailOrDelay
.DSNOptions = 14
.fields.update
.Send
End With

i'm sending message to the e-mail i want to check for validation. and i can get confirmation that mail was sent succesfuly. but the problem is that i get it by mail. i want to check if e-mail is valid in the source code. if its possible

thank you
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
BoogyB is offline Offline
4 posts
since Mar 2005
Apr 9th, 2005
0

Re: need help with e-mail validation(asp)

There is no way to check that a email address exists in ASP. The only thing you could do is a "whois" on the domain to make sure it is real, but that is about all you can do.
Reputation Points: 25
Solved Threads: 7
Junior Poster
Drew is offline Offline
166 posts
since Apr 2004
Apr 10th, 2005
0

Re: need help with e-mail validation(asp)

could you shoe an example of this?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
BoogyB is offline Offline
4 posts
since Mar 2005
Apr 10th, 2005
0

Re: need help with e-mail validation(asp)

I can never actually needed to code this but you could probably take a look at this script and recode it so check for the email domain of the user and make sure it is valid.
Reputation Points: 25
Solved Threads: 7
Junior Poster
Drew is offline Offline
166 posts
since Apr 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP Forum Timeline: Next and Loop
Next Thread in ASP Forum Timeline: Error message when running ASP login page





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC