Extended the interface of supplying  parameters needed in sending mail. Now, the secureConnection option can be set for the nodemailer.