smtpmail-query-smtp-server

smtpmail-query-smtp-server is a compiled Lisp function in `smtpmail.el'.

(smtpmail-query-smtp-server)

Query for an SMTP server and try to contact it.
If the contact succeeds, customizes and saves `smtpmail-smtp-server'
and `smtpmail-smtp-service'. This tries standard SMTP ports, and if
none works asks you to supply one. If you know that you need to use
a non-standard port, you can set `smtpmail-smtp-service' in advance.
Returns an error if the server cannot be contacted.