org.ijsberg.iglu.util.mail
Class EMail

java.lang.Object
  extended by org.ijsberg.iglu.util.mail.EMail

public class EMail
extends Object

Mails an SMTP message to recipients.


Constructor Summary
EMail(String senderName, String senderMailAddress, String mailto, String subject, String message)
           
EMail(String senderName, String senderMailAddress, String mailto, String subject, String message, FileData[] attachments)
           
 
Method Summary
 void abort()
          Tries to abort sending the mail.
 Object execute()
          Attempts to send the message (asynchronously).
 void mail()
          Mails a message to certain recipients.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EMail

public EMail(String senderName,
             String senderMailAddress,
             String mailto,
             String subject,
             String message)
Parameters:
senderName - nice name of sender
mailto -
subject -
message -

EMail

public EMail(String senderName,
             String senderMailAddress,
             String mailto,
             String subject,
             String message,
             FileData[] attachments)
Parameters:
senderName - nice name of sender
Method Detail

execute

public Object execute()
               throws Throwable
Attempts to send the message (asynchronously).

Returns:
Throws:
Throwable

abort

public void abort()
Tries to abort sending the mail.


mail

public void mail()
Mails a message to certain recipients.



Copyright © 2011. All Rights Reserved.