AnsweredAssumed Answered

Email notification example

Question asked by javydreamercsw on Oct 30, 2006
Latest reply on Dec 5, 2006 by javydreamercsw
I've been reading across the post for how to set up the email for notifications since it seems is not an out-of-the-box feature. I found the following in the System administration manual:

Configuring email
You can configure the Alfresco repository to send e-mails from an SMTP server.
Currently the repository does not support secure SMTP servers. In V1.2 the
mail.username may be anonymous.

The procedure involves:
 Copying part of a default configuration file
 Pasting the snippet into a new file.
 Saving the file in the <extension> directory.
➢ To configure email
1. Browse to the file:
Warning: You are recommended not to directly modify any property in a default file.
2. Copy the following block of email properties:
# Email configuration
3. Create a new file in the <extension> directory.
4. Copy the email properties block into this file.
5. Modify any property to your required value as follows (you can delete any
unmodified property, because it will retain the default value from<the name of your SMTP host>
mail.port=<the port that your SMTP service runs on (the default is
mail.username=<the username of the account you want e-mail to be sent
mail.password=<the password>
6. Save the file with a meaningful name that ends with .properties
7. Ensure that your new file is pointed to, so that it can be found at server startup
(refer to "About pointing to customized configuration files", on page 7).

I looked into the system and the email properties are already in the file. The created an file with the specified contents and obviously the required values. Here's an example:

The following the section "About pointing to customized configuration files > Pointing to customized files (non-web client) in <extension>
directory" and added the following line to custom-db-and-data-context.xml

<?xml version='1.0' encoding='UTF-8'?>

       This shows the common minimum configuration overrides.
       By default, the content and indexes are located at a relative location, which should only
       be used when doing a quick preview of the Alfresco server.
    <!– overriding to point to custom properties –>
    <bean id="repository-properties" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
        <property name="ignoreUnresolvablePlaceholders">
        <property name="locations">

                <!– Override data location properties –>
                <!– Override database connection properties –>

    <bean id="hibernateConfigProperties" class="org.springframework.beans.factory.config.PropertiesFactoryBean">
        <property name="locations">

                <!– Override hibernate dialect –>

Then restarted the server but no email received after activating a workflow with email actions (the rest of the rules worked).

Any idea and/or example?

Thanks in advance.