net.israfil.service.mail
Class MailEngineImpl

java.lang.Object
  extended by net.israfil.service.mail.MailEngineImpl
All Implemented Interfaces:
MailService

public class MailEngineImpl
extends java.lang.Object
implements MailService

Class for sending e-mail messages based on Velocity templates or with attachments.

Author:
Matt Raible

Constructor Summary
MailEngineImpl(MailTransport transport)
           
 
Method Summary
 boolean send(MailMessage message)
          Send a simple message with pre-populated values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailEngineImpl

public MailEngineImpl(MailTransport transport)
Method Detail

send

public boolean send(MailMessage message)
Send a simple message with pre-populated values.

Specified by:
send in interface MailService
Parameters:
msg - the message to send
Throws:
org.springframework.mail.MailException - when SMTP server is down


Copyright © 2009. All Rights Reserved.