|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jasp.smtp.NewMail
The NewMail object provides for sending a message with very few lines of code.
Constructor Summary | |
NewMail()
|
Method Summary | |
void |
AttachFile(java.lang.String source)
Adds an attachment to the message by reading a file |
void |
AttachFile(java.lang.String source,
java.lang.String filename)
Adds an attachment to the message by reading a file |
void |
AttachFile(java.lang.String source,
java.lang.String filename,
int encode)
Adds an attachment to the message by reading a file |
void |
AttachURL(java.lang.String source,
java.lang.String contentlocation)
Adds an attachment to the message and associates a Uniform Resource Locator (URL) with the attachment |
void |
AttachURL(java.lang.String source,
java.lang.String contentlocation,
java.lang.String contentbase)
Adds an attachment to the message and associates a Uniform Resource Locator (URL) with the attachment |
void |
AttachURL(java.lang.String source,
java.lang.String contentlocation,
java.lang.String contentbase,
int encode)
Adds an attachment to the message and associates a Uniform Resource Locator (URL) with the attachment |
java.lang.String |
getVersion()
|
boolean |
Send()
Attempts to send the email. |
void |
Send(java.lang.String from)
sends the NewMail object to the specified recipients |
void |
Send(java.lang.String from,
java.lang.String to)
Sends the NewMail object to the specified recipients |
void |
Send(java.lang.String from,
java.lang.String to,
java.lang.String subject)
Sends the NewMail object to the specified recipients |
void |
Send(java.lang.String from,
java.lang.String to,
java.lang.String subject,
java.lang.String body)
Sends the NewMail object to the specified recipients |
void |
Send(java.lang.String from,
java.lang.String to,
java.lang.String subject,
java.lang.String body,
int importance)
Sends the NewMail object to the specified recipients |
void |
setBcc(java.lang.String bcc)
Adds to the list of blind copy (Bcc) recipients for the NewMail object. |
void |
setBody(java.lang.String b)
Sets the text of the NewMail object. |
void |
setBodyFormat(int b)
Sets the text format of the NewMail object |
void |
setCC(java.lang.String cc)
Adds to the list of copy (Cc) recipients for the NewMail object |
void |
setContentBase(java.lang.String cb)
Sets a base for all URLs relating to the NewMail object's message body The ContentBase property is used for MHTML (MIME HTML) support. |
void |
setContentLocation(java.lang.String ct)
Sets an absolute or relative path for all URLs relating to the NewMail object's message body The ContentLocation property is used for MHTML (MIME HTML) support. |
void |
setFrom(java.lang.String f)
Sets the full messaging address to be used for the sender of this NewMail object. |
void |
setImportance(int i)
Sets the importance associated with the NewMail object. |
void |
setItem(java.lang.String header,
java.lang.String vl)
Sets the value and contents of an additional header for the NewMail object. |
void |
SetLocaleIDs(int codepageid)
Sets identifiers that define a messaging user's locale |
void |
setMailFormat(int m)
The setting of the MailFormat property determines the default value for the EncodingMethod parameter in the AttachFile and AttachURL methods. |
void |
setPassword(java.lang.String pwd)
Sets the password of the user name. |
void |
setRemoteHost(java.lang.String rh)
Sets RemoteHost of the smtp server |
void |
setSubject(java.lang.String s)
Sets the subject of the NewMail object as a string |
void |
setTo(java.lang.String to)
Adds to the list of principal (To) recipients for the NewMail object |
void |
setUserName(java.lang.String name)
Sets the user name of the smtp server. |
void |
setValue(java.lang.String header,
java.lang.String vl)
Sets the value and contents of an additional header for the NewMail object |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NewMail()
Method Detail |
public void setBcc(java.lang.String bcc)
public void setBody(java.lang.String b)
public void setBodyFormat(int b)
b
- the body format.public void setCC(java.lang.String cc)
public void setContentBase(java.lang.String cb)
public void setContentLocation(java.lang.String ct)
public void setFrom(java.lang.String f)
public void setImportance(int i)
public void setMailFormat(int m)
public void setSubject(java.lang.String s)
public void setTo(java.lang.String to)
public void setValue(java.lang.String header, java.lang.String vl)
public void setItem(java.lang.String header, java.lang.String vl)
public java.lang.String getVersion()
public void AttachFile(java.lang.String source, java.lang.String filename, int encode)
source
- The full path and file name of the file to
be attached to the messagefilename
- The file name to appear in the attachment's
placeholder in the message. If FileName is not
supplied, the file name from the Source parameter
is used.encode
- The manner of encoding the attachment. The following
values are possible: public void AttachFile(java.lang.String source, java.lang.String filename)
public void AttachFile(java.lang.String source)
public void AttachURL(java.lang.String source, java.lang.String contentlocation, java.lang.String contentbase, int encode)
source
- The full path and file name of the resource to be attached to the message.contentlocation
- The absolute or relative prefix for the URL that the rendering
client can use to reference this attachmentcontentbase
- A base for the URL used to reference this attachment.encode
- The manner of encoding the attachment.public void AttachURL(java.lang.String source, java.lang.String contentlocation, java.lang.String contentbase)
source
- The full path and file name of the resource to be attached to the message.contentlocation
- The absolute or relative prefix for the URL that the rendering
client can use to reference this attachmentcontentbase
- A base for the URL used to reference this attachment.public void AttachURL(java.lang.String source, java.lang.String contentlocation)
source
- The full path and file name of the resource to be attached to the message.contentlocation
- The absolute or relative prefix for the URL that the rendering
client can use to reference this attachmentpublic void Send(java.lang.String from, java.lang.String to, java.lang.String subject, java.lang.String body, int importance) throws java.lang.Exception
java.lang.Exception
public void Send(java.lang.String from, java.lang.String to, java.lang.String subject, java.lang.String body) throws java.lang.Exception
java.lang.Exception
public void Send(java.lang.String from, java.lang.String to, java.lang.String subject) throws java.lang.Exception
java.lang.Exception
public void Send(java.lang.String from, java.lang.String to) throws java.lang.Exception
java.lang.Exception
public void Send(java.lang.String from) throws java.lang.Exception
java.lang.Exception
public void setRemoteHost(java.lang.String rh)
public void setUserName(java.lang.String name)
public void setPassword(java.lang.String pwd)
public boolean Send() throws java.lang.Exception
java.lang.Exception
public void SetLocaleIDs(int codepageid)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |