package com.storlead.mail.connection;

/**
 * @program: sp-sales-platform
 * @description:
 * @author: chenkq
 * @create: 2024-05-30 15:23
 */
public class SMTPConnectionFactory {
    private final String host;
    private final String port;
    private final String user;
    private final String password;

    public SMTPConnectionFactory(String host, String port, String user, String password) {
        this.host = host;
        this.port = port;
        this.user = user;
        this.password = password;
    }

    public SMTPConnection createConnection() {
        return new SMTPConnection(host, port, user, password);
    }
}
