/*
 * 
 */
package com.fp.bpmlib.mail;

import com.fp.common.logger.APPLogger;

// TODO: Auto-generated Javadoc
/**
 * Class MailThread encargada de.
 * 
 * @author gfiallos
 */
public class MailThread extends Thread {

    /** El valor de m. */
    private Mailer m;

    /**
     * Crea una nueva instancia de mail thread.
     * 
     * @param pMaler the maler
     */
    public MailThread(Mailer pMaler) {
        this.m = pMaler;
    }

    /**
     * Run.
     */
    @Override
    public void run() {
        try {
            this.m.send();
        } catch (Exception e) {
            APPLogger.getLogger().warn(e, e);
        }
    }

}
