Wt::Mail connect to remote SMTP Server
It would be very helpful if Wt::Mail could connect to a remote server (for example, GMail) rather than just localhost.
For example, it could take the address of a server and credentials in the Mailbox constructor; or read a preferences file such that it could be configured across different deployment environments.
Updated by Wim Dumon over 7 years ago
We recommend that you install a 'smart host' mailer on localhost, that does the forwarding to the external mail server. Then you can use a mailer that support authentication, certificates, retransmissions, ... and all other nice features that you can expect from a full-featured mailer.
This seems to make more sense than to implement all exotic smtp features in Wt.
Updated by Wim Dumon over 4 years ago
On unix at least, it's not uncommon to configure an smtp server on localhost that forwards mail to an SMTP server of your choice, so that the authentication problem is not a problem of each individual application, but so that it's solved on the host level.
What authentication method should Wt support? I'm not very familiar with the technical details.
Wikipedia lists a few: PLAIN, LOGIN, GSSAPI, DIGEST-MD5, MD5, CRAM-MD5
Would ESMTP + PLAIN be sufficient?