|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cysols.iodef.transport.MailTransporter
public class MailTransporter
This class is used to transport an IODEF xml file through SMTP.
| Constructor Summary | |
|---|---|
MailTransporter(String smtpServer)
A default constructor with SMTP Server. |
|
| Method Summary | |
|---|---|
void |
send(String from,
String[] to,
String subject,
String body,
File xmlFile)
Sends a Email with attaching a xml file. |
void |
send(String from,
String[] to,
String subject,
String body,
String xmlFilePath)
Sends a Email with attaching a xml file. |
void |
send(String from,
String[] to,
String subject,
String body,
String reply,
String returnPath,
File xmlFile)
Sends a Email with attaching a xml file. |
void |
send(String from,
String[] to,
String subject,
String body,
String reply,
String returnPath,
String xmlFilePath)
Sends a Email with attaching a xml file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MailTransporter(String smtpServer)
throws AddressException
AddressException - - a wrongly formatted address is given.| Method Detail |
|---|
public void send(String from,
String[] to,
String subject,
String body,
String xmlFilePath)
throws UnsupportedEncodingException,
MessagingException
from - Mail Sender Address.to - an array of Mail Recipient addresses.subject - Mail Subjectbody - Mail ContentsxmlFilePath - IODEF xml file path.
UnsupportedEncodingException - the charactor encoding is not supported.
MessagingException - thrown while mail sending.
public void send(String from,
String[] to,
String subject,
String body,
File xmlFile)
throws UnsupportedEncodingException,
MessagingException
from - Mail Sender Address.to - an array of Mail Recipient addresses.subject - Mail Subjectbody - Mail ContentsxmlFile - xmlFile instance.
UnsupportedEncodingException - the charactor encoding is not supported.
MessagingException - thrown while mail sending.
public void send(String from,
String[] to,
String subject,
String body,
String reply,
String returnPath,
String xmlFilePath)
throws UnsupportedEncodingException,
MessagingException
from - Mail Sender Address.to - an array of Mail Recipient addresses.subject - Mail Subjectbody - Mail Contentsreply - Replay Address in the mail headerreturnPath - Return-Path address in the mail headerxmlFilePath - IODEF xml file path.
UnsupportedEncodingException - the charactor encoding is not supported.
MessagingException - thrown while mail sending.
public void send(String from,
String[] to,
String subject,
String body,
String reply,
String returnPath,
File xmlFile)
throws UnsupportedEncodingException,
MessagingException
from - Mail Sender Address.to - an array of Mail Recipient addresses.subject - Mail Subjectbody - Mail Contentsreply - Replay Address in the mail headerreturnPath - Return-Path address in the mail headerxmlFile - xmlFile instance.
UnsupportedEncodingException - the charactor encoding is not supported.
MessagingException - thrown while mail sending.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||