org.exoplatform.services.mail.impl
Class MailServiceImpl

java.lang.Object
  extended by org.exoplatform.services.mail.impl.MailServiceImpl
All Implemented Interfaces:
MailService

public class MailServiceImpl
extends Object
implements MailService

Created by The eXo Platform SAS Author : Phung Hai Nam phunghainam@gmail.com Dec 23, 2005


Constructor Summary
MailServiceImpl(InitParams params)
           
 
Method Summary
 javax.mail.Session getMailSession()
           
 String getOutgoingMailServer()
           
 void sendMessage(Message message)
           
 void sendMessage(javax.mail.internet.MimeMessage message)
           
 void sendMessage(String from, String to, String subject, String body)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailServiceImpl

public MailServiceImpl(InitParams params)
                throws Exception
Throws:
Exception
Method Detail

getMailSession

public javax.mail.Session getMailSession()
Specified by:
getMailSession in interface MailService

getOutgoingMailServer

public String getOutgoingMailServer()
Specified by:
getOutgoingMailServer in interface MailService

sendMessage

public void sendMessage(String from,
                        String to,
                        String subject,
                        String body)
                 throws javax.mail.MessagingException,
                        IOException
Specified by:
sendMessage in interface MailService
Throws:
javax.mail.MessagingException
IOException

sendMessage

public void sendMessage(Message message)
                 throws javax.mail.MessagingException
Specified by:
sendMessage in interface MailService
Throws:
javax.mail.MessagingException

sendMessage

public void sendMessage(javax.mail.internet.MimeMessage message)
                 throws javax.mail.MessagingException
Specified by:
sendMessage in interface MailService
Throws:
javax.mail.MessagingException


Copyright © 2009 eXo Platform SAS. All Rights Reserved.