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.
 
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.
 
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.
 
Back
Top