3
There may be an email provider that uses an address SMTP that does not start with smtp.?
Or is there a rule that doesn’t allow servers to be configured SMTP out of this pattern.
Because I am implementing an email configurator in my project that allows the user to enter the address SMTP of the provider at hand completely, without any kind of validation at the entry of the same.
So I wonder if I can create some kind of preconfiguration, or block that prevents the user to enter with something totally absurd.
For doing some tests here with the library Javamail (in a version a little more lite, because my implementation is in android) making attempts to send email using a host of the kind: gshshd.gdhfj.com, it takes about 3 minutes to return to Exception for my application, which is not a good user experience. I have tried in a host of the kind: smtp.gfdga.com, he returns to Exception almost instantly for my application.
I would like to perhaps even allow host who do not start with smtp., if that’s a rule.
But there is a pattern, even if it is:
smtp.or.mail, or it could be anything, like the example I quoted in the question?– Fernando Leal
A pattern per use, perhaps -
smtp,mailand the like are an example. Default by specification, no: a server calledpatolino.looneytunes.commay be a valid entry.– OnoSendai
so in my case I can not do a validation and no restriction on user input. What I can try is to check before on MX as you quoted.
– Fernando Leal