- Publicity: Public Only All
html-email-procs.tcl
Contains procs to send HTML email outside of the context of ACS Mail package.
- Location:
- packages/acs-tcl/tcl/html-email-procs.tcl
- Created:
- 25 Feb 2002
- Authors:
- Doug Harris <dharris@worldbank.org>
- Janine Sisk <jsisk@mit.edu>
- CVS Identification:
$Id: html-email-procs.tcl,v 1.23 2024/09/11 06:15:48 gustafn Exp $
Procedures in this file
- ad_build_mime_message (public)
- ad_parse_incoming_email (public)
- build_mime_message (public, deprecated)
- parse_incoming_email (public, deprecated)
Detailed information
ad_build_mime_message (public)
ad_build_mime_message text_body html_body [ charset ]
Composes multipart/alternative email containing plain text and html versions of the message, parses out the headers we need, constructs an array and returns it to the caller. This proc is based on ad_html_sendmail, written by Doug Harris at the World Bank.
- Parameters:
- text_body (required)
- html_body (required)
- charset (optional, defaults to
"UTF-8"
)- Returns:
- ns_set containing MIME-Version, Content-ID, Content-Type, and body
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- ad_build_mime_message
ad_parse_incoming_email (public)
ad_parse_incoming_email message
Takes an incoming message and splits it into parts. The main goal of this proc is to return something that can be stuffed into the database somewhere, such as a forum message. Since we aggressively filter HTML, the HTML tags are stripped out of the returned content. The message may have only plain text, plain text and HTML, or plain text and something else (Apple Mail uses text/enhanced, for example). To make our lives simpler we support only text/html as a special case; in all other cases the plain text is returned.
- Parameters:
- message (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
build_mime_message (public, deprecated)
build_mime_message [ args... ]
Deprecated. Invoking this procedure generates a warning.
Composes multipart/alternative email containing plain text and html versions of the message, parses out the headers we need, constructs an array and returns it to the caller. This proc is based on ad_html_sendmail, written by Doug Harris at the World Bank. DEPRECATED: this proc does not comply with naming convention enforced by acs-tcl.naming__proc_naming automated test
- See Also:
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
parse_incoming_email (public, deprecated)
parse_incoming_email message
Deprecated. Invoking this procedure generates a warning.
Takes an incoming message and splits it into parts. The main goal of this proc is to return something that can be stuffed into the database somewhere, such as a forum message. Since we aggressively filter HTML, the HTML tags are stripped out of the returned content. The message may have only plain text, plain text and HTML, or plain text and something else (Apple Mail uses text/enhanced, for example). To make our lives simpler we support only text/html as a special case; in all other cases the plain text is returned. DEPRECATED: does not comply with OpenACS naming convention
- Parameters:
- message (required)
- See Also:
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.