Can there be an email provider that uses a SMTP address that does not start with smtp. ?
Or there is some rule that does not allow SMTP servers to be configured outside this standard.
Because I'm implementing an email configurator in my project that allows the user to enter the SMTP address of the provider at hand, without any type of validation at the entry.
So I would like to know if I can create some sort of preconfiguration, or blocking that prevents the user from entering something totally absurd.
Well, doing some testing here with the JavaMail library (in a slightly more lite version because my implementation is in android) making e-mail attempts using a host of type: gshshd.gdhfj.com
, it takes about 3 minutes to return Exception
to my application, which is not a good experience for the user. I've already tried a host of type: smtp.gfdga.com
, it returns Exception
almost instantly for my application.
I would like to be able to even allow hosts that do not start with smtp. if this is a rule.