Forum OpenACS Development: Re: Some notes about acs-mail-lite when upgrading

Relatedly, if you used weird hack to have acs-mail-lite push html mails in olden days, those hacks won't work any longer. I.e.:

set body_text [ad_html_to_text $body]
set message_data [build_mime_message $body_text $body]
set extra_headers [ns_set new]
ns_set put $extra_headers MIME-Version [ns_set get $message_data MIME-Version]
ns_set put $extra_headers Content-ID [ns_set get $message_data Content-ID]
ns_set put $extra_headers Content-Type [ns_set get $message_data Content-Type]
set message [ns_set get $message_data body]
acs_mail_lite::send \
-to_addr $to_addr \
-from_addr $from_addr \
-subject $subject \
-body $message \
-extraheaders $extra_headers

... should now simply be:

acs_mail_lite::send \
-to_addr $to_addr \
-from_addr $from_addr \
-subject $subject \
-body $message \
-mime_type "text/html"

(I'm posting this only because it came as a surprise to me.)