.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old January 25th, 2001, 09:19 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
Sending emails with CDO, getting adresses from a DB

<i><b>Originally posted by : Sebastian (S.Hofferberth@web.de)</b></i><br />Hello<br /><br />I am trying to write a page that sends the same email-message to multiple adresses selected from a database.<br /><br />My problem is that not all entries in the database contain a valid email, which creates a "type mismatch" <br /><br />So my question: Is there a way to check if the entry is a valid email adress?<br /><br />Thanks for any help<br /><br />

Reply With Quote
  #2  
Old January 25th, 2001, 10:53 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : tricia (trishkitts@yahoo.com)</b></i><br />Sebastian - here's a function that you can run your email addresses through (not 100% guaranteed):<br /><br />'********************<br />'in Main code:<br />if ValidEmail(useremail) then<br />'send<br />else<br />'don't send<br />end if<br />'********************<br />Function ValidEmail(address)<br /> Dim GEval<br /> blValidEmail = False<br /> if instr(address, "@") > 1 then<br /> if instr(address, " ") = 0 then<br /> if instr(address, ",") = 0 then<br /> if instr(address, ".") > 0 then<br /> if instr(address, "'") = 0 then blValidEmail = True<br /> end if<br /> end if<br /> end if<br /> end if<br /> end if<br /> ValidEmail = blValidEmail<br />End Function<br /><br /><br />------------<br />Sebastian at 1/25/2001 7:19:17 AM<br /><br />Hello<br /><br />I am trying to write a page that sends the same email-message to multiple adresses selected from a database.<br /><br />My problem is that not all entries in the database contain a valid email, which creates a "type mismatch" <br /><br />So my question: Is there a way to check if the entry is a valid email adress?<br /><br />Thanks for any help<br /><br />

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > Sending emails with CDO, getting adresses from a DB


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway