Page History
...
Property: |
| ||
Example Value: |
| ||
Informational Note: | The address on which your outgoing SMTP email server can be reached. | ||
Property: |
| ||
Example Value: |
| ||
Informational Note: | SMTP mail server authentication username, if required. This property is optional. | ||
Property: |
| ||
Example Value: |
| ||
Informational Note: | SMTP mail server authentication password, if required. This property is optional/ | ||
Property: |
| ||
Example Value: |
| ||
Informational Note: | The port on which your SMTP mail server can be reached. By default, port 25 is used. Change this setting if your SMTP mailserver is running on another port. This property is optional. | ||
Property: |
| ||
Example Value: |
| ||
Informational Note: | The "From" address for email. Change the 'myu.edu' to the site's host name. | ||
Property: |
| ||
Example Value: |
| ||
Informational Note: | When a user clicks on the feedback link/feature, the information will be sent to the email address of choice. This configuration is currently limited to only one recipient. Since DSpace 4.0, this is also the email address displayed on the contacts page. | ||
Property: |
| ||
Example Value: |
| ||
Informational Note: | Email address of the general site administrator (Webmaster) | ||
Property: |
| ||
Example Value: |
| ||
Informational Note: | Enter the recipient for server errors and alerts. This property is optional. | ||
Property: |
| ||
Example Value: |
| ||
Informational Note: | Enter the recipient that will be notified when a new user registers on DSpace. This property is optional. | ||
Property: |
| ||
Example Value: |
| ||
Informational Note: | Set the default mail character set. This may be over-ridden by providing a line inside the email template '#set($charset = "encoding")'. Otherwise this default is used. | ||
Property: |
| ||
Example Value: |
| ||
Informational Note: | A comma separated list of hostnames that are allowed to refer browsers to email forms. Default behavior is to accept referrals only from dspace.hostname. This property is optional. | ||
Property: |
| ||
Example Value: |
| ||
Informational Note: | If you need to pass extra settings to the Java mail library. Comma separated, equals sign between the key and the value. This property is optional. | ||
Property: |
| ||
Example Value: |
| ||
Informational Note: | An option is added to disable the mailserver. By default, this property is set to ' | ||
Property: |
| ||
Example Value: |
| ||
Informational Note: | Specifies the name of a javax.mail.Session object stored in JNDI under | ||
Property: |
| ||
Example Value: |
| ||
Informational Note: | If no other language is explicitly stated in the input-forms.xml, the default language will be attributed to the metadata values. | ||
Property: | mail.message.headers | ||
Example Value: | mail.message.headers = subject mail.message.headers = charset | ||
Informational Note: | When processing a message template, setting a Velocity property whose name is one of the values of this configuration property will add or replace a message header of the same name, using the value of the property as the header's value. See "Templates can set message headers". |
Wording of E-mail Messages
Sometimes DSpace automatically sends e-mail messages to users, for example, to inform them of a new work flow task, or as a subscription e-mail alert. The wording of emails e-mails can be changed by editing the relevant file in [dspace]/config/emails
. Each file is commented. Be careful to keep the right number 'placeholders' (e.g. ${params[2]}) for the template's positional parameters.
Each file is a Velocity template. You can use the full Velocity Template Language to help you customize messages. There are two Velocity properties pre-defined by DSpace : when processing an e-mail template:
params
is the array of message parameters provided by the DSpace code which is sending the message
...
- . These are indexed by number
...
- , starting at zero.
config
is the table of DSpace configuration properties (such asdspace.name
). These are looked up usingconfig.get(property name)
.
Code Block | ||
---|---|---|
| ||
## This is a comment. It will not be part of the message.
This is the body of the message. The code which sends it supplied two parameters: ${params[0]} and ${params[1]}.
The name of this DSpace instance is ${config.get('dspace.name')} and you can browse it at ${config.get('dspace.url')}. |
Also see and config
is the table of DSpace configuration properties (such as dspace.name
) indexed by property name. See the template config/emails/register
for an example of each.
Note: You should replace the contact-information "dspace-help@myu.edu or call us at xxx-555-xxxx
" with your own contact details in:config/emails/change_password
config/emails/register
Templates can set message headers
A template can set specific message headers by defining Velocity properties which have been enabled for this use by naming them as values of the DSpace configuration property mail.message.headers
. In most cases the name of the Velocity property will become the header's name, and the value of the property, the header's value. For example: #set(My-Header, "Hello World!")
in a template will result in the message having a header My-Header: Hello World!
IFF if mail.message.headers includes "My-Header".
A few Velocity property names are special in DSpace email templates:
name | meaning |
---|---|
subject | supplies the Subject: header's value. |
charset | sets the |
...
Code Block | ||
---|---|---|
| ||
## This is a comment. It will not be part of the sent message.
#set($subject = "This will be the Subject: of the message")
This is the body of the message. |
File Storage
Info |
---|
Beginning with DSpace 6, your file storage location (aka bitstore) is now defined in the |
...