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:
- mail server name/address
- sender's email address
- recipient(s) email address(es)
- mail message body
Events: (none)
Methods:
Copyright (c) Taligent, Inc. 1996 - 1997.
Copyright (c) IBM Corporation 1996 - 1997.
All Rights Reserved.
- See Also:
- SMTPClient
-
SMTPSession()
-
-
getMail()
- Retrieve current mail message.
-
getMailServer()
- Get current mail server.
-
getRecipient()
- Get first (single) recipient.
-
getRecipients()
- Retrieve list of recipients.
-
getSender()
- Get current sender.
-
main(String[])
-
-
sendMail()
- Send mail message.
-
setMail(String)
- Set mail message.
-
setMailServer(String)
- Set mail server name.
-
setRecipient(String)
- Set a single recipient's email address.
-
setRecipients(String[])
- Set list of recipients' email addresses.
-
setSender(String)
- Set sender email address.
-
showBeanClient()
- Display the client for this bean.
SMTPSession
public SMTPSession()
setMailServer
public void setMailServer(String server)
- Set mail server name.
getMailServer
public String getMailServer()
- Get current mail server.
setSender
public void setSender(String sender)
- Set sender email address.
getSender
public String getSender()
- Get current sender.
setRecipient
public void setRecipient(String recipient)
- Set a single recipient's email address.
getRecipient
public String getRecipient()
- Get first (single) recipient.
setRecipients
public void setRecipients(String recipients[])
- Set list of recipients' email addresses.
getRecipients
public String[] getRecipients()
- Retrieve list of recipients.
setMail
public void setMail(String mail)
- Set mail message. Message should contain both headers and
body.
getMail
public String getMail()
- Retrieve current mail message.
sendMail
public void sendMail() throws IOException
- Send mail message. Set message content prior to invoking this
method.
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.
main
public static void main(String argv[])
All Packages Class Hierarchy This Package Previous Next Index