The email server settings are configured in the dspace.cfg (smtp server to use, credentials, from),

The application uses named email template build with Apache Velocity. The template are stored in the /config/email the i18n support can be added providing template file with language postfix (i.e. register, register_es, register_it).

Here is an example of a notification template (/config/emails/register)

#set($subject = "${config.get('dspace.name')} Account Registration")

To complete registration for a DSpace account, please click the link

below:

  ${params[0]}

If you need assistance with your account, please email

${config.get("mail.admin")} or call us at xxx-555-xxxx.

The DSpace Team

#set($MAIL-HEADER = value) → allows to set a mail header such as the subject, a ccn, etc.

${config.get('PARAM’)} → provides access to a configuration parameters.

${params[0]} → provides access to parameters specific of the event to notify, they are usually documented as comment at the start of the template.

  • No labels