11.1. Sendmail with basic SMTP authentication
The following example shows how to configure sendmail to send
mails via a mailserver which requires a login. This basic
authentication is today very common to protect the mailservices
especially of big providers against spammers. The example was
developed and tested with Microsoft Exchange but it should work
with any other mailserver (e.g. sendmail or postfix).