Home > Contents > Index >
Expanded TOC   |    Accordion TOC   |    Annotated TOC   |    Index

 

ICS.SendMail

Sends an SMTP e-mail message to one or more recipients.

There are two variants, whose differences are as follows:

The Utilities.sendMail method also lets you send an SMTP e-mail message to one or more recipients.


ICS.SendMail

Sends an SMTP mail message to one or more recipients.

Syntax

Parameters

to
A valid e-mail address; for example, "joe@fatwire.com". You can optionally specify a comma-separated list; for example:

subject
The subject of the message. May be null if the body is not null.

body
The message body. May be null if the subject is not null.

Returns

Returns true on success, false on failure.

Description

The SendMail method sends an SMTP message to one or more recipients. To send mail, the ContentServer properties file must contain valid values for the cs.emailhost and cs.emailreturnto properties. To receive mail, the ContentServer properties file must contain valid values for the cs.emailhost, cs.emailaccount, and cs.emailpassword properties.

errno

Use GetErrno () to view the error.

Possible values of errno include:

Value
Description
-106
Bad parameters.
-201
Can't send e-mail.

 

See Also

EmailEvent


ICS.SendMail

Sends an SMTP mail message to one or more recipients.

Syntax

Parameters

to
A valid e-mail address; for example, "joe@fatwire.com". You can optionally specify a comma-separated list; for example:

replyto
The email address you want replies sent to. If a value is not supplied, replies will be sent to the sender's address.

subject
The subject of the message. May be null if the body is not null.

body
The message body. May be null if the subject is not null.

contenttype
The MIME type of the content you are sending. Default is text/plain.

Returns

Returns true on success, false on failure.

Description

The SendMail method sends an SMTP message to one or more recipients. To send mail, the ContentServer properties file must contain valid values for the cs.emailhost and cs.emailreturnto properties. To receive mail, the ContentServer properties file must contain valid values for the cs.emailhost, cs.emailaccount, and cs.emailpassword properties.

errno

Use GetErrno () to view the error.

Possible values of errno include:

Value
Description
-106
Bad parameters.
-201
Can't send e-mail.

 

See Also

EmailEvent

 

  Home > Contents > Index >

FatWire JAVA Reference
Copyright 2005 by FatWire Software
All rights reserved.