| Info |
|---|
Help is available by sending an email to csf-support@mit.edu Have any suggestion on how improve this wiki? Please give us your feedback at csf-support@mit.edu |
| Anchor |
|---|
| Maven dependency |
|---|
| Maven dependency |
|---|
|
Maven dependency
Add the following dependency to your project's pom.xml.
| Code Block |
|---|
<dependency>
<groupId>edu.mit.ist.es.csf</groupId>
<artifactId>csf-email</artifactId>
<version>[0.0.0,999.999.999)</version>
</dependency>
|
| Panel |
|---|
| Anchor |
|---|
| Email properties |
|---|
| Email properties |
|---|
|
Email propertiesYou will have to configure the following in your application properties file: - email.address.from: the from address of the email
- email.address.test.to: the email address that email will sent to when production mode is false
- email.address.bcc: the bcc address of the email
- email.production.mode: set to true when in production, set to false when in development/test
- email.app.id: the app id of the application using the EmailService.
|
| Panel |
|---|
| Anchor |
|---|
| Maven dependency | Maven dependency | Maven dependency
Add the following dependency to your project's pom.xml.
| Code Block |
|---|
|
<dependency>
<groupId>edu.mit.ist.es.csf</groupId>
<artifactId>csf-email</artifactId>
<version>[0.0.0,999.999.999)</version>
</dependency>
|
| Panel |
|---|
| Anchor |
|---|
| Session Factory |
|---|
| Session Factory |
|---|
|
Session FactoryIn order to access the hibernate mappings used by the EmailService, you need to add the following property in the sesionFactory bean of your applicationContext: | Code Block |
|---|
<property name="mappingLocations">
<list>
<value>classpath*:edu/mit/es/csf/email/hibernate/*.hbm.xml</value>
</list>
</property>
|
|
...