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

com.kapil.framework.email.EmailVO Maven / Gradle / Ivy

Go to download

This is a set of utilities and classes that I have found useful over the years. In my career spanning over a decade, I have time and again written the same code or some part of the code over and over again. I never found the time to collate the details in a reusable library. This project will be a collection of such files. The work that I have been doing is more than 5 years old, however the project has been conceived in 2011.

There is a newer version: 1.2.1
Show newest version
package com.kapil.framework.email;

import java.util.ArrayList;
import java.util.List;

public class EmailVO
{

    String       mimeType;
    String       content;
    String       subject;
    List fromAddress = new ArrayList();
    List toAddress   = new ArrayList();
    List ccAddress   = new ArrayList();
    List bccAddress  = new ArrayList();


    public String getMimeType()
    {
        return mimeType;
    }


    public void setMimeType(String mimeType)
    {
        this.mimeType = mimeType;
    }


    public String getContent()
    {
        return content;
    }


    public void setContent(String content)
    {
        this.content = content;
    }


    public String getSubject()
    {
        return subject;
    }


    public void setSubject(String subject)
    {
        this.subject = subject;
    }


    
    public List getFromAddress()
    {
        return fromAddress;
    }


    public void setFromAddress(List fromAddress)
    {
        this.fromAddress = fromAddress;
    }


    public List getToAddress()
    {
        return toAddress;
    }


    public void setToAddress(List toAddress)
    {
        this.toAddress = toAddress;
    }


    public List getCcAddress()
    {
        return ccAddress;
    }


    public void setCcAddress(List ccAddress)
    {
        this.ccAddress = ccAddress;
    }


    public List getBccAddress()
    {
        return bccAddress;
    }


    public void setBccAddress(List bccAddress)
    {
        this.bccAddress = bccAddress;
    }



    /**
     * Contains all permissible mime types for emails.
     */
    public static class MimeTypes
    {
        public static final String HTML = "text/html";

        public static final String TEXT = "text/text";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy