jSyncManager

org.jSyncManager.Conduit.Email
Class SmtpMail

java.lang.Object
  |
  +--org.jSyncManager.API.Protocol.Util.DLPRecord
        |
        +--org.jSyncManager.API.Protocol.Util.StdApps.MailRecord
              |
              +--org.jSyncManager.Conduit.Email.Email_Base
                    |
                    +--org.jSyncManager.Conduit.Email.SmtpMail
All Implemented Interfaces:
java.io.Serializable

public class SmtpMail
extends Email_Base

See Also:
Serialized Form

Fields inherited from class org.jSyncManager.API.Protocol.Util.StdApps.MailRecord
ADDRESSING_FLAG, ADDRESSING_FLAG_ROTATE, ADDRESSING_SENT_BCC, ADDRESSING_SENT_CC, ADDRESSING_SENT_TO, CONFIRM_DELIVERY_FLAG, CONFIRM_DELIVERY_FLAG_ROTATE, CONFIRM_READ_FLAG, CONFIRM_READ_FLAG_ROTATE, PRIORITY_FLAG, PRIORITY_FLAG_ROTATE, PRIORITY_HIGH, PRIORITY_LOW, PRIORITY_NORMAL, rb, READ_FLAG, READ_FLAG_ROTATE, SIGNATURE_FLAG, SIGNATURE_FLAG_ROTATE
 
Fields inherited from class org.jSyncManager.API.Protocol.Util.DLPRecord
ARCHIVED, attributes, BUSY, category, data, DATA_INCLUDED, DELETE_ALL_IN_CATEGORY, DELETE_ALL_RECORDS, DELETED, DIRTY, index, inputData, recordID, recordSize, SECRET, SORT_DATABASE
 
Constructor Summary
SmtpMail()
           
SmtpMail(Email_Base base)
           
SmtpMail(MailRecord record, Email_Base base)
           
 
Method Summary
 boolean equals(SmtpMail obj)
           
 javax.mail.Session getSession()
          Getter for property session.
static void main(java.lang.String[] args)
           
protected  javax.mail.internet.MimeMessage prepareHeader(java.lang.String smtp_host, java.lang.String from, java.lang.String to, java.lang.String subject)
           
 void sendMail()
           
 void sendMailWithAttachments(java.util.Vector attach)
           
 void setSession()
          Setter for property session.
 void setSession(javax.mail.Session session)
          Setter for property session.
 
Methods inherited from class org.jSyncManager.Conduit.Email.Email_Base
getConduitHandler, getFrom, getHost, getName, getPort, getProps, getPwd, getUserid, setConduitHandler, setFrom, setHost, setMailRecord, setName, setPort, setPort, setProps, setPwd, setUserid, toString
 
Methods inherited from class org.jSyncManager.API.Protocol.Util.StdApps.MailRecord
generateData, getAddressing, getBCC, getCC, getConfirmDeliveryFlag, getConfirmReadFlag, getFlags, getMessageBody, getPriority, getReadFlag, getReplyTo, getSentTo, getSignatureFlag, getSubject, getTime, getTo, parseFields, setAddressing, setBCC, setCC, setConfirmDeliveryFlag, setConfirmReadFlag, setFlags, setMessageBody, setPriority, setReadFlag, setRecord, setReplyTo, setSentTo, setSignatureFlag, setSubject, setTime, setTo
 
Methods inherited from class org.jSyncManager.API.Protocol.Util.DLPRecord
checkAttribute, getAttributes, getCategory, getData, getIndex, getRecordID, getRecordSize, setAttributes, setCategory, setData, setIndex, setRecordID, setRecordSize
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SmtpMail

public SmtpMail()

SmtpMail

public SmtpMail(Email_Base base)
         throws javax.mail.NoSuchProviderException,
                javax.mail.MessagingException

SmtpMail

public SmtpMail(MailRecord record,
                Email_Base base)
         throws javax.mail.NoSuchProviderException,
                javax.mail.MessagingException,
                java.io.IOException
Method Detail

prepareHeader

protected javax.mail.internet.MimeMessage prepareHeader(java.lang.String smtp_host,
                                                        java.lang.String from,
                                                        java.lang.String to,
                                                        java.lang.String subject)
                                                 throws java.io.IOException,
                                                        javax.mail.internet.AddressException,
                                                        javax.mail.MessagingException

sendMail

public void sendMail()
              throws java.io.IOException,
                     javax.mail.internet.AddressException,
                     javax.mail.MessagingException

sendMailWithAttachments

public void sendMailWithAttachments(java.util.Vector attach)
                             throws java.io.IOException,
                                    javax.mail.internet.AddressException,
                                    javax.mail.MessagingException

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception

equals

public boolean equals(SmtpMail obj)

getSession

public javax.mail.Session getSession()
Getter for property session.
Returns:
Value of property session.

setSession

public void setSession()
Setter for property session. Sets session from default

setSession

public void setSession(javax.mail.Session session)
Setter for property session.
Parameters:
session - New value of property session.

jSyncManager

Copyright (c) 1999 - 2003 Brad BARCLAY and others. All Rights Reserved.