TangoMail
public TangoMail(String smtpHost)
Create TangoMail object
Parameters :
smtpHost - host name
returns:
Object
tango_Mail
public TangoMail()
Create TangoMail object connect socket with local host
returns:
Object
setFrom
public void setFrom(String name, String address)
set from address --- User name and address can be
Parameters : name - user name
address - user Email address
addTo
public void addTo (Vector toRcpts)
set to address --- recipient name and address
Parameters : Vector of Hashtable
two keys are 'toadr' and 'toname'
addCc
public void addCc (Vector ccrcpts)
set CC address --- CC anme and address
Parameters : Vector of Hashtable
two keys are 'ccadr' and 'ccname'
setDebug
public void setDebug (boolean)
default = false : private checkResponse() Method
will check the response number from SMTP
and print message
Parameter : true or false
setContext
public void setContext (String context)
add context of your mail
Parameter : text string (US-ASCII text) Max.
1000 characters
setSubject
public void setSubject(String subject)
set subject of mail
Parameter : text string (US-ASCII text)
sendMail
public void sendMail()
send the mail --- should be invoked after setting all parameters