net.sf.hajavamail
Interface SenderStrategy

All Known Implementing Classes:
GroupingSenderStrategy, HostGroupingSenderStrategy, SimpleSenderStrategy

public interface SenderStrategy

To configure a specific sender strategy use the TransportProxy.SENDER_STRATEGY session property.

Since:
1.0
Version:
$Revision: 1.2 $
Author:
Paul Ferraro

Method Summary
 void send(Sender sender, Message message, Address[] addresses)
          Send the specified message to the specified addresses using the specified sender.
 

Method Detail

send

void send(Sender sender,
          Message message,
          Address[] addresses)
          throws MessagingException
Send the specified message to the specified addresses using the specified sender.

Parameters:
sender - object responsible for actually sending the message.
message - JavaMail message to send
addresses - an array of Addresses to which to sending the message
Throws:
MessagingException - if message cannot be sent