// Path: src/java/com/idega/block/mailinglist/data/EmailLetterData.java
// public interface EmailLetterData extends com.idega.data.IDOLegacyEntity
// {
//  public com.idega.core.file.data.ICFile getAttachments();
//  public java.lang.String getBCCEmail();
//  public java.lang.String getBody();
//  public java.lang.String getCCEmail();
//  public java.lang.String getDate();
//  public java.lang.String getFromEmail();
//  public boolean getHasSent();
//  public java.lang.String getSubject();
//  public java.lang.String getToEmail();
//  public void setAttachments(com.idega.core.file.data.ICFile p0);
//  public void setBCCEmail(java.lang.String p0);
//  public void setBody(java.lang.String p0);
//  public void setCCEmail(java.lang.String p0);
//  public void setDate(java.sql.Timestamp p0);
//  public void setFromEmail(java.lang.String p0);
//  public void setHasSent(java.lang.Boolean p0);
//  public void setSubject(java.lang.String p0);
//  public void setToEmail(java.lang.String p0);
// }


import com.idega.util.SendMail;
import com.idega.block.mailinglist.data.EmailLetterData;
import java.sql.SQLException;
import javax.mail.MessagingException;
package com.idega.block.mailinglist.business;


/**
 * Title:        idegaWeb Classes
 * Description:
 * Copyright:    Copyright (c) 2001
 * Company:      idega
 * @author <a href="bjarni@idega.is">Bjarni Viljhalmsson</a>
 * @version 1.0
 */

public class EmailServices {

  public EmailServices() {

  }

// Path: src/java/com/idega/block/mailinglist/data/EmailLetterData.java
// public interface EmailLetterData extends com.idega.data.IDOLegacyEntity
// {
//  public com.idega.core.file.data.ICFile getAttachments();
//  public java.lang.String getBCCEmail();
//  public java.lang.String getBody();
//  public java.lang.String getCCEmail();
//  public java.lang.String getDate();
//  public java.lang.String getFromEmail();
//  public boolean getHasSent();
//  public java.lang.String getSubject();
//  public java.lang.String getToEmail();
//  public void setAttachments(com.idega.core.file.data.ICFile p0);
//  public void setBCCEmail(java.lang.String p0);
//  public void setBody(java.lang.String p0);
//  public void setCCEmail(java.lang.String p0);
//  public void setDate(java.sql.Timestamp p0);
//  public void setFromEmail(java.lang.String p0);
//  public void setHasSent(java.lang.Boolean p0);
//  public void setSubject(java.lang.String p0);
//  public void setToEmail(java.lang.String p0);
// }


// Path: src/java/com/idega/block/mailinglist/business/EmailServices.java
import com.idega.util.SendMail;
import com.idega.block.mailinglist.data.EmailLetterData;
import java.sql.SQLException;
import javax.mail.MessagingException;

package com.idega.block.mailinglist.business;


/**
 * Title:        idegaWeb Classes
 * Description:
 * Copyright:    Copyright (c) 2001
 * Company:      idega
 * @author <a href="bjarni@idega.is">Bjarni Viljhalmsson</a>
 * @version 1.0
 */

public class EmailServices {

  public EmailServices() {

  }

  public static void sendServices(EmailLetterData letter) throws SQLException, MessagingException{