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

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

package io.github.ilyalisov.mail.service;

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

import java.util.Map;

public class GoogleMailServiceImpl extends MailServiceImpl {

    /**
     * Creates an object.
     *
     * @param username      username of gmail.com account
     * @param password      password of gmail.com account
     * @param configuration freemarker configuration
     * @param templates     map of templates
     */
    public GoogleMailServiceImpl(
            final String username,
            final String password,
            final Configuration configuration,
            final Map templates
    ) {
        super(
                configuration,
                new GoogleMailSender(
                        username,
                        password
                ),
                templates
        );
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy