| org.sakaiproject.email.api.EmailService
All known Subclasses: org.sakaiproject.email.impl.BasicEmailService,
EmailService | public interface EmailService (Code) | |
EmailService is an interface to sending emails.
|
Method Summary | |
void | send(String fromStr, String toStr, String subject, String content, String headerToStr, String replyToStr, List additionalHeaders) Creates and sends a generic text MIME message to the address contained in to.
Parameters: fromStr - The address this message is to be listed as coming from. Parameters: toStr - The address(es) this message should be sent to. Parameters: subject - The subject of this message. Parameters: content - The body of the message. Parameters: headerToStr - If specified, this is placed into the message header, but "too" is used for the recipients. Parameters: replyToStr - If specified, the reply-to header value. Parameters: additionalHeaders - Additional email headers to send (List of String). | void | sendMail(InternetAddress from, InternetAddress[] to, String subject, String content, InternetAddress[] headerTo, InternetAddress[] replyTo, List additionalHeaders) Creates and sends a generic text MIME message to the address contained in to.
Parameters: from - The address this message is to be listed as coming from. Parameters: to - The address(es) this message should be sent to. Parameters: subject - The subject of this message. Parameters: content - The body of the message. Parameters: headerToStr - If specified, this is placed into the message header, but "to" is used for the recipients. Parameters: replyTo - If specified, this is the reply to header address(es). Parameters: additionalHeaders - Additional email headers to send (List of String). | void | sendToUsers(Collection users, Collection headers, String message) Send a single message to a set of Users. |
send | void send(String fromStr, String toStr, String subject, String content, String headerToStr, String replyToStr, List additionalHeaders)(Code) | | Creates and sends a generic text MIME message to the address contained in to.
Parameters: fromStr - The address this message is to be listed as coming from. Parameters: toStr - The address(es) this message should be sent to. Parameters: subject - The subject of this message. Parameters: content - The body of the message. Parameters: headerToStr - If specified, this is placed into the message header, but "too" is used for the recipients. Parameters: replyToStr - If specified, the reply-to header value. Parameters: additionalHeaders - Additional email headers to send (List of String). For example, content type or forwarded headers (may be null) |
sendMail | void sendMail(InternetAddress from, InternetAddress[] to, String subject, String content, InternetAddress[] headerTo, InternetAddress[] replyTo, List additionalHeaders)(Code) | | Creates and sends a generic text MIME message to the address contained in to.
Parameters: from - The address this message is to be listed as coming from. Parameters: to - The address(es) this message should be sent to. Parameters: subject - The subject of this message. Parameters: content - The body of the message. Parameters: headerToStr - If specified, this is placed into the message header, but "to" is used for the recipients. Parameters: replyTo - If specified, this is the reply to header address(es). Parameters: additionalHeaders - Additional email headers to send (List of String). For example, content type or forwarded headers (may be null) |
sendToUsers | void sendToUsers(Collection users, Collection headers, String message)(Code) | | Send a single message to a set of Users.
Parameters: users - Collection (of User) to send the message to (for those with valid email addresses). Parameters: headers - List (of String, form "name: value") of headers for the message. Parameters: message - String body of the message. |
|
|