Alaska Software Inc. - valid Email check
Username: Password:
AuthorTopic: valid Email check
Reinthaler Rudolfvalid Email check
on Mon, 21 Jul 2008 10:59:19 +0200
Hello,
does anyone know how to check a emailaddress with asinet ? I would need to 
check correct addresses dirct in my application.
regards
Rudolf
Thomas Braun
Re: valid Email check
on Mon, 21 Jul 2008 14:00:42 +0200
Reinthaler Rudolf wrote:

> does anyone know how to check a emailaddress with asinet ? I would need to 
> check correct addresses dirct in my application.

Do you mean syntactical correctness?

Then you may use the following regular expression with Phil Ide's regular
expression class:

local oReg := RegExp():new('^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$',PCRE_CASELESS)
...
IF oReg:Exec(cEmail) <= 0
... valid email
ENDIF

HTH
Thomas
Reinthaler RudolfRe: valid Email check
on Tue, 22 Jul 2008 12:49:52 +0200
Hello Thomas,
I need to check if the address exists. There are webistes that are doint 
this, but how to make it with Asinet ?
regards
Rudolf



"Thomas Braun" <spam@software-braun.de> schrieb im Newsbeitrag 
news:1uh2oebll8j88$.graiv0m0wea$.dlg@40tude.net...
> Reinthaler Rudolf wrote:
>
>> does anyone know how to check a emailaddress with asinet ? I would need 
>> to
>> check correct addresses dirct in my application.
>
> Do you mean syntactical correctness?
>
> Then you may use the following regular expression with Phil Ide's regular
> expression class:
>
> local oReg := 
> RegExp():new('^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$',PCRE_CASELESS)
> ...
> IF oReg:Exec(cEmail) <= 0
> ... valid email
> ENDIF
>
> HTH
> Thomas
Stephan KoenigRe: valid Email check
on Tue, 22 Jul 2008 09:38:24 -0400
I have put a lot of research into this. You can not validate this 100% 
without sending an actual e-mail.
Thomas Braun
Re: valid Email check
on Tue, 22 Jul 2008 16:52:06 +0200
Reinthaler Rudolf wrote:

> Hello Thomas,
> I need to check if the address exists. There are webistes that are doint 
> this, but how to make it with Asinet ?

Basically, you need to open a connection to the mail server and try to
deliver a message. But there are mail servers that accept any email
recipient as a countermeasure against directory harvesting attacks.

Here you can find some sample code in VB that shows the basic principle:

http://www.15seconds.com/issue/030203.htm 

Thomas
Reinthaler RudolfRe: valid Email check
on Wed, 23 Jul 2008 10:26:01 +0200
Hello Thomas
thank you, I will take a look at it. It must be possible, because some 
websites offer it
regards
Rudolf

"Thomas Braun" <spam@software-braun.de> schrieb im Newsbeitrag 
news:3tm21z613wic.30eavi8hnhry.dlg@40tude.net...
> Reinthaler Rudolf wrote:
>
>> Hello Thomas,
>> I need to check if the address exists. There are webistes that are doint
>> this, but how to make it with Asinet ?
>
> Basically, you need to open a connection to the mail server and try to
> deliver a message. But there are mail servers that accept any email
> recipient as a countermeasure against directory harvesting attacks.
>
> Here you can find some sample code in VB that shows the basic principle:
>
> http://www.15seconds.com/issue/030203.htm
>
> Thomas
Thomas Braun
Re: valid Email check
on Wed, 23 Jul 2008 11:47:33 +0200
Reinthaler Rudolf wrote:

> Hello Thomas
> thank you, I will take a look at it. It must be possible, because some 
> websites offer it

Yes, I know - but you should be aware that there is no 100% accurate
solution without actually sending an email...

Thomas
Reinthaler RudolfRe: valid Email check
on Thu, 24 Jul 2008 18:08:49 +0200
ok, I see, seems to be complicated
regards
Rudolf

"Thomas Braun" <spam@software-braun.de> schrieb im Newsbeitrag 
news:10cqwptqqjrt8.b5ybkyv37p98.dlg@40tude.net...
> Reinthaler Rudolf wrote:
>
>> Hello Thomas
>> thank you, I will take a look at it. It must be possible, because some
>> websites offer it
>
> Yes, I know - but you should be aware that there is no 100% accurate
> solution without actually sending an email...
>
> Thomas