All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.ilyalisov.mail.service.MailRuMailServiceImpl Maven / Gradle / Ivy

package io.github.ilyalisov.mail.service;

import io.github.ilyalisov.mail.config.MailConfiguration;
import io.github.ilyalisov.mail.config.vendors.MailRuMailSender;
import freemarker.template.Configuration;

import java.util.Map;

public class MailRuMailServiceImpl extends MailServiceImpl {

    /**
     * Creates an object.
     *
     * @param username      username of mail.ru account
     * @param password      password of mail.ru account
     * @param configuration freemarker configuration
     * @param templates     map of templates
     */
    public MailRuMailServiceImpl(
            final String username,
            final String password,
            final Configuration configuration,
            final Map templates
    ) {
        super(
                configuration,
                new MailRuMailSender(
                        username,
                        password
                ),
                templates
        );
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy