All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class COM.ibm.beans.net.SMTPSession

java.lang.Object
   |
   +----COM.ibm.beans.net.SMTPSession

public class SMTPSession
extends Object
implements Serializable
Java Bean that manages a SMTP session with a mail server.

Properties:

Events: (none)

Methods:

 Copyright (c) Taligent, Inc.  1996 - 1997.
 Copyright (c) IBM Corporation 1996 - 1997.
 All Rights Reserved.
 

See Also:
SMTPClient

Constructor Index

 o SMTPSession()

Method Index

 o getMail()
Retrieve current mail message.
 o getMailServer()
Get current mail server.
 o getRecipient()
Get first (single) recipient.
 o getRecipients()
Retrieve list of recipients.
 o getSender()
Get current sender.
 o main(String[])
 o sendMail()
Send mail message.
 o setMail(String)
Set mail message.
 o setMailServer(String)
Set mail server name.
 o setRecipient(String)
Set a single recipient's email address.
 o setRecipients(String[])
Set list of recipients' email addresses.
 o setSender(String)
Set sender email address.
 o showBeanClient()
Display the client for this bean.

Constructors

 o SMTPSession
 public SMTPSession()

Methods

 o setMailServer
 public void setMailServer(String server)
Set mail server name.

 o getMailServer
 public String getMailServer()
Get current mail server.

 o setSender
 public void setSender(String sender)
Set sender email address.

 o getSender
 public String getSender()
Get current sender.

 o setRecipient
 public void setRecipient(String recipient)
Set a single recipient's email address.

 o getRecipient
 public String getRecipient()
Get first (single) recipient.

 o setRecipients
 public void setRecipients(String recipients[])
Set list of recipients' email addresses.

 o getRecipients
 public String[] getRecipients()
Retrieve list of recipients.

 o setMail
 public void setMail(String mail)
Set mail message. Message should contain both headers and body.

 o getMail
 public String getMail()
Retrieve current mail message.

 o sendMail
 public void sendMail() throws IOException
Send mail message. Set message content prior to invoking this method.

 o showBeanClient
 public void showBeanClient()
Display the client for this bean. The default implementation of this method will show the default Customizer for this bean, viz. the SMTPSessionCustomizer. To show a different UI for this bean, this method must be overridden appropriately.

 o main
 public static void main(String argv[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index