Forum OpenACS Development: Notification Templates

Collapse
Posted by Iuri Sampaio on
Hi there,

After registration and password recovery, some notifications are sent. How would it be to customize a few HTML body templates to those emails.
I was looking for references for a callback to the notification pkg, in the source core, within the file user-new, ad_proc auth::create_user. But I've found nothing, yet.

Best wishes,

Collapse
2: Re: Notification Templates (response to 1)
Posted by Gustaf Neumann on
There are several improvements in this regard in the forthcoming release of OpenACS; now, all messages concerning member_state changes can be tailored via messages keys [1]. More could/should be done in the future.

-gn

[1] https://github.com/openacs/openacs-core/blob/oacs-5-9/packages/acs-kernel/catalog/acs-kernel.en_US.ISO-8859-1.xml#L144

Collapse
3: Re: Notification Templates (response to 2)
Posted by Iuri Sampaio on
Are HTML templates covered in the forthcoming release?
Collapse
4: Re: Notification Templates (response to 3)
Posted by Iuri Sampaio on
Btw, is there a parameter in acs-mail-lite pkg to enable HTML body format?

Best wishes,

So far, I found only one reference to the subject content-typeXacs-mail-lite. but it doesn't say much about the topic.

https://openacs.org/forums/message-view?message_id=174945

Best wishes,

Collapse
6: Re: Notification Templates (response to 1)
Posted by Iuri Sampaio on
Nevermind, api-doc has the answer https://openacs.org/api-doc/proc-view?proc=acs_mail_lite::send&source_p=1

-mime_type (defaults to "text/plain") (optional)
MIME Type of the mail to send out. Can be "text/plain", "text/html".