Using custom email template

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2013 03:36 AM
I would send an email from java bean.
I use the
How I set "myTemplate.ftl" before to call mailHelper.notifyUser?
Thanks!
I use the
mailHelper.notifyUser(person, nodeRef, from, role);
After that I add a new template "myTemplate.ftl" in Company Home/Data Dictionary/Email template space, which are the steps if I wanted to use it?How I set "myTemplate.ftl" before to call mailHelper.notifyUser?
Thanks!
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2013 05:42 AM
You are going to have to post more information than that. What is mailHelper? And is your code java script or java.
But I can't see a notifyUser method that takes a role.
What I can see are various versions that take the node ref of the template.
But I can't see a notifyUser method that takes a role.
What I can see are various versions that take the node ref of the template.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2013 08:38 AM
…I'm following the source code sample of Jeff Potts, "Alfresco Developer Guide".
I suppose the code refers to "notifyUser" method of org.alfresco.web.bean.TemplateMailHelperBean.
So, my code is java. What I would do is send an email (using a custom template) from the bean associated with my custom dialog.
I suppose the code refers to "notifyUser" method of org.alfresco.web.bean.TemplateMailHelperBean.
So, my code is java. What I would do is send an email (using a custom template) from the bean associated with my custom dialog.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2013 09:56 AM
I do this:
1) get noderef for "my_custom_template.ftl"
2) get the ftl ID
3) set the custom template… setUsingTemplate(custom_ftl_ID)
4) set the email subject …..setSubject("this is the email subject")
5) send the email ….. notifyUser(………)
It seem to work
By
1) get noderef for "my_custom_template.ftl"
2) get the ftl ID
3) set the custom template… setUsingTemplate(custom_ftl_ID)
4) set the email subject …..setSubject("this is the email subject")
5) send the email ….. notifyUser(………)
It seem to work
By
