How to use swaks to send a test email?
Swaks can be downloaded here.
Example command line to send a test email:
./swaks --auth \
--server SMTP.SERVER.COM \
--au USERNAME@YOUR_DOMAIN_NAME \
--ap YOUR_PASSWORD \
--from USERNAME@YOUR_DOMAIN_NAME \
--to DEST@EXAMPLE.COM \
--h-Subject: "This is a test email" \
--body "Hello, World!"