View Javadoc

1   package com.ozacc.mail;
2   
3   import javax.mail.internet.MimeMessage;
4   
5   /***
6    * SMTP¥µ¡¼¥Ð¤È¤ÎÀܳ¡¢ÀÚÃǤòǤ°Õ¤Î¥¿¥¤¥ß¥ó¥°¤Ç¹Ô¤¤¤¿¤¤¾?¹ç¤Ë»ÈÍѤ¹¤?SendMail¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¡£
7    * <p>
8    * ÂçÎ̥᡼¥?ÇÛ¿®¤Ç¡¢Mail¤äMimeMessage¤ÎÇÛÎó¤òÍѰդ¹¤?¤È¥á¥â¥ê¤ò°µÇ÷¤·¤Æ¤·¤Þ¤¦¾?¹ç¤Ê¤É¤Ë»ÈÍѤ·¤Þ¤¹¡£<br>
9    * Àܳ¤Î¥¯¥ú½¼¥º¤ò˺¤?¤Ê¤¤¤è¤¦¤ËÃúÌÕ¤·¤Æ¤¯¤À¤µ¤¤¡£
10   * 
11   * @author Tomohiro Otsuka
12   * @version $Id: SendMailPro.java,v 1.1 2004/09/04 09:07:22 otsuka Exp $
13   */
14  public interface SendMailPro {
15  
16  	/***
17  	 * SMTP¥µ¡¼¥Ð¤ËÀܳ¤·¤Þ¤¹¡£
18  	 * 
19  	 * @throws MailException
20  	 */
21  	void connect() throws MailException;
22  
23  	/***
24  	 * SMTP¥µ¡¼¥Ð¤È¤ÎÀܳ¤ò¥¯¥ú½¼¥º¤·¤Þ¤¹¡£
25  	 * Àܳ¤·¤Æ¤¤¤Ê¤¤»?¤Ë¤³¤Î¥á¥½¥Ã¥É¤ò¸Æ¤ó¤Ç¤â²¿¤â¹Ô¤¤¤Þ¤»¤ó¡£
26  	 * 
27  	 * @throws MailException
28  	 */
29  	void disconnect() throws MailException;
30  
31  	/***
32  	 * »ØÄꤵ¤?¤¿MimeMessage¤òÁ÷¿®¤·¤Þ¤¹¡£SMTP¥µ¡¼¥Ð¤ËÀܳ¤·¤Æ¤¤¤Ê¤¤¾?¹ç¤ÏÎã³°¤ò¥¹¥ú½¼¤·¤Þ¤¹¡£
33  	 * 
34  	 * @param mimeMessage
35  	 * @throws MailException
36  	 */
37  	void send(MimeMessage mimeMessage) throws MailException;
38  
39  	/***
40  	 * »ØÄꤵ¤?¤¿Mail¤òÁ÷¿®¤·¤Þ¤¹¡£SMTP¥µ¡¼¥Ð¤ËÀܳ¤·¤Æ¤¤¤Ê¤¤¾?¹ç¤ÏÎã³°¤ò¥¹¥ú½¼¤·¤Þ¤¹¡£
41  	 * 
42  	 * @param mail
43  	 * @throws MailException
44  	 */
45  	void send(Mail mail) throws MailException;
46  
47  }