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:
- SendMail (Variant 1) lets you specify only
 to,subject, andbody.
- SendMail (Variant 2) lets you specify several additional parameters.
 The
Utilities.sendMailmethod 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
public boolean SendMail(String to, String subject, String body)Parameters
to- A valid e-mail address; for example, "
 joe@fatwire.com". You can optionally specify a comma-separated list; for example:
"joe@fatwire.com, jane@fatwire.com"subject- The subject of the message. May be
 nullif thebodyis notnull.
body- The message body. May be
 nullif thesubjectis notnull.
Returns
Returns
trueon success,falseon failure.Description
The
SendMailmethod sends an SMTP message to one or more recipients. To send mail, the ContentServer properties file must contain valid values for thecs.emailhostandcs.emailreturntoproperties. To receive mail, the ContentServer properties file must contain valid values for thecs.emailhost,cs.emailaccount, andcs.emailpasswordproperties.errno
Use
GetErrno()to view the error.Possible values of
errnoinclude:
 Value Description-106 Bad parameters.-201 Can't send e-mail.
See Also
ICS.SendMail
Sends an SMTP mail message to one or more recipients.
Syntax
public boolean SendMail(String to, String subject, String body, String replyto, String contenttype)Parameters
to- A valid e-mail address; for example, "
 joe@fatwire.com". You can optionally specify a comma-separated list; for example:
"joe@fatwire.com, jane@fatwire.com"subject- The subject of the message. May be null if the
 bodyis not null.
body- The message body. May be null if the
 subjectis not null.replyto- The email address you want replies sent to. If a value is not supplied, replies will be sent to the sender's address.
 
contenttype- The MIME type of the content you are sending. Default is
 text/plain.
Returns
Returns
trueon success,falseon failure.Description
The
SendMailmethod sends an SMTP message to one or more recipients. To send mail, the ContentServer properties file must contain valid values for thecs.emailhostandcs.emailreturntoproperties. To receive mail, the ContentServer properties file must contain valid values for thecs.emailhost,cs.emailaccount, andcs.emailpasswordproperties.errno
Use
GetErrno()to view the error.Possible values of
errnoinclude:
 Value Description-106 Bad parameters.-201 Can't send e-mail.
See Also
Home > Contents > Index > ![]()
FatWire JAVA Reference
Copyright 2005,2006,2007 by FatWire Software
All rights reserved.