Fix issues with blank vs NULL for port. Added force secure option. Fix for plain text vs HTML emails.