Adding button to use custom SMTP gateway

I want to add a button to memo page that, when clicked, causes the package to be sent via a custom SMTP gateway, potentially using a different port and using SMTPS (or SSL/TLS).

Any hints?

1: Adding a button

2: Sending via SMTP

3: Using SSL/TLS or SMTPS