reset password
Author Message
JHautzinger
Posts: 14
Posted 09:49 May 26, 2010 |

Dr Sun,

 

Where can I edit the contents of the email that is sent out?  Everything is functioning correctly, except I can't find where to edit the contents of the email.  Is it stored somewhere?

Last edited by JHautzinger at 09:50 May 26, 2010.
cysun
Posts: 2935
Posted 10:00 May 26, 2010 |

I don't know what you mean by editing the content. If you look at some existing code in CSNS (e.g. email notification in CreateTopicController), the typical way to do it is to create an email template with some tokens (i.e. placeholders) like @forum.name@, inject the template to a controller as a bean, create a SimpleMailMessage from the template with the tokens replaced with the actual values, then send the message out.

katiatkn
Posts: 16
Posted 12:58 May 26, 2010 |

The email content can be added/updated in to csns\conf\spring-email.xml