org.springframework.mail.cos
Class CosMailSenderImpl

java.lang.Object
  extended byorg.springframework.mail.cos.CosMailSenderImpl
All Implemented Interfaces:
MailSender

public class CosMailSenderImpl
extends java.lang.Object
implements MailSender

Simple implementation of SMTP mail sending on top of Jason Hunter's MailMessage class that's included in COS (com.oreilly.servlet).

Does not support any richer functionality than MailSender and SimpleMailMessage, therefore there's no optional richer interface like the JavaMailSender interface for the JavaMailSenderImpl implementation.

Since:
09.10.2003
Version:
$Id: CosMailSenderImpl.java,v 1.6 2004/03/18 02:46:10 trisberg Exp $
Author:
Juergen Hoeller
See Also:
MailMessage, JavaMailSenderImpl

Constructor Summary
CosMailSenderImpl()
           
 
Method Summary
 void send(SimpleMailMessage simpleMessage)
          Send the given simple mail message.
 void send(SimpleMailMessage[] simpleMessages)
          Send the given array of simple mail messages in batch.
 void setHost(java.lang.String host)
          Set the SMTP mail host.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CosMailSenderImpl

public CosMailSenderImpl()
Method Detail

setHost

public void setHost(java.lang.String host)
Set the SMTP mail host.


send

public void send(SimpleMailMessage simpleMessage)
          throws MailException
Description copied from interface: MailSender
Send the given simple mail message.

Specified by:
send in interface MailSender
Parameters:
simpleMessage - message to send
Throws:
MailException - in case of message, authentication or send errors

send

public void send(SimpleMailMessage[] simpleMessages)
          throws MailException
Description copied from interface: MailSender
Send the given array of simple mail messages in batch.

Specified by:
send in interface MailSender
Parameters:
simpleMessages - messages to send
Throws:
MailException - in case of message, authentication or send errors


Copyright (C) 2003-2004 The Spring Framework Project.