in reply to configure SMTPHost and port into EMAIL module
I would use Net::SMTPS or Net::SMTP, both of which are very simple to use in such a fashion.