Question Gmail does not work with SMTP

Carthalion

New member
Joined
Sep 9, 2021
Messages
1
Programming Experience
10+
Until I figure out a way to make Gmail work in my VB.Net program, I need to stop users from entering their Gmail email address. I am trying to use a Regular Express Validator to block only email addresses with gmail.

Please suggest a Validation Expression for this.
 

jmcilhinney

VB.NET Forum Moderator
Staff member
Joined
Aug 17, 2004
Messages
14,548
Location
Sydney, Australia
Programming Experience
10+
Please post in the most appropriate forum for the topic. VS forums are for question about using the VS IDE. If there is no more specific forum that suits, language questions belong in VB.NET General. Thread moved.
 

jmcilhinney

VB.NET Forum Moderator
Staff member
Joined
Aug 17, 2004
Messages
14,548
Location
Sydney, Australia
Programming Experience
10+
I'm pretty hopeless with regular expressions but aren't you just looking for anything that ends with ".gmail.com"? That seems a pretty easy thing to match. If I wanted to do that, I'd look for a regular expression to match the end of a string and I'm fairly confident I'd find something pretty quickly. Maybe I'm missing something here.
 
Top Bottom