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   * @since 1.0
12   * @author Tomohiro Otsuka
13   * @version $Id: SendMailPro.java,v 1.2 2004/09/13 07:08:33 otsuka Exp $
14   */
15  public interface SendMailPro {
16  
17  	/***
18  	 * SMTP¥µ¡¼¥Ð¤ËÀܳ¤·¤Þ¤¹¡£
19  	 * 
20  	 * @throws MailException
21  	 */
22  	void connect() throws MailException;
23  
24  	/***
25  	 * SMTP¥µ¡¼¥Ð¤È¤ÎÀܳ¤ò¥¯¥ú½¼¥º¤·¤Þ¤¹¡£
26  	 * Àܳ¤·¤Æ¤¤¤Ê¤¤»?¤Ë¤³¤Î¥á¥½¥Ã¥É¤ò¸Æ¤ó¤Ç¤â²¿¤â¹Ô¤¤¤Þ¤»¤ó¡£
27  	 * 
28  	 * @throws MailException
29  	 */
30  	void disconnect() throws MailException;
31  
32  	/***
33  	 * »ØÄꤵ¤?¤¿MimeMessage¤òÁ÷¿®¤·¤Þ¤¹¡£SMTP¥µ¡¼¥Ð¤ËÀܳ¤·¤Æ¤¤¤Ê¤¤¾?¹ç¤ÏÎã³°¤ò¥¹¥ú½¼¤·¤Þ¤¹¡£
34  	 * 
35  	 * @param mimeMessage
36  	 * @throws MailException
37  	 */
38  	void send(MimeMessage mimeMessage) throws MailException;
39  
40  	/***
41  	 * »ØÄꤵ¤?¤¿Mail¤òÁ÷¿®¤·¤Þ¤¹¡£SMTP¥µ¡¼¥Ð¤ËÀܳ¤·¤Æ¤¤¤Ê¤¤¾?¹ç¤ÏÎã³°¤ò¥¹¥ú½¼¤·¤Þ¤¹¡£
42  	 * 
43  	 * @param mail
44  	 * @throws MailException
45  	 */
46  	void send(Mail mail) throws MailException;
47  
48  }