Fixed #20743 -- Added support for keyfile/certfile in SMTP connections.

Incorporated previous work by jwmayfield (SVN-based patch originally
provided by serg.partizan / partizan and Wojciech Banaś) for #13142 to
support SSL keyfile and certfile configuration for SMTP connections.