Selecting all items in a list view and validating a email address

Winston

Junior Contributor
Joined
Jan 25, 2003
Messages
266
Location
Sydney, Australia
hey guys i got two questions

how to select all the items in a list view through code


and how do u validate that the entered text is a email address
 
This should work for you:
Visual Basic:
        Dim reg As New System.Text.RegularExpressions.Regex("\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*")
        Dim matc As System.Text.RegularExpressions.Match
        matc = reg.Match(TextBox1.Text, "\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*")
        If matc.Success = True Then
            MsgBox("matched")
        End If
 
thanks that worked :D!!

anyways i was gonna ask another ques instead of started a new thread

i read about emailing

and i see that smtp is compulsory

but wat if the user doesnt have a email account with smtp setup on their PC's?
i found out my isp's smtp server had no authent so currentyl using that but is there any other alternative methods or do uno of any other smtp servers that dont need authent
or is it possible to write a little background app that makes ur PC act like a smtp server
 
There are free smtp servers but they are usually big and require installation. As the for email providers, I dont know :( .
 
I dont really know because i didnt install it before.
And btw. its almost 12mb :(
http://www.postcastserver.com

The only other way I could think of sending email through your app would placing the web browser control and navigating to some page written in php or asp that will send email :rolleyes:
 
Back
Top