class SmtpTask implements Task {

    @Deprecated
    public void send(String hostName, int port, String from, String to, String subject, String message, String bcc) throws Exception {
        Map<String, Object> smtp = new HashMap<>();
        smtp.put(Constants.HOST_KEY, hostName);
        smtp.put(Constants.PORT_KEY, port);

        Map<String, Object> mail = new HashMap<>();
        mail.put(Constants.FROM_KEY, from);
        mail.put(Constants.TO_KEY, to);
        mail.put(Constants.SUBJECT_KEY, subject);
        mail.put(Constants.MESSAGE_KEY, message);
        mail.put(Constants.BCC_KEY, bcc);

        send(null, smtp, mail);
    }

}