Siebel Interactive Selling Transact Server Interface Reference > Email Bean API >

sendMail


sendMail function sends the email.

Syntax

public boolean sendMail(String to, String subject, String message)

Arguments

String to
The recipient of the email

String subject

The subject for the email.

String message

The email message.

Usage

The sendMail function sends the email message given in the "message" parameter to the recipient specified in the "to" parameter with the subject in the "subject" parameter. This function returns true if the message is sent successfully or false if an error is encountered during send.

Example

<% if (request.getParameter("To") != null) {
boolean mail_sent = Email.sendMail(request.getParameter("To"), request.getParameter("Subject"), request.getParameter("Message")));
}
%>


 Siebel Interactive Selling Transact Server Interface Reference 
 Published: 18 April 2003