cancel
Showing results for 
Search instead for 
Did you mean: 

How to send email through alfresco

en64026
Champ in-the-making
Champ in-the-making
Hi friends,

While new user sign up has done, the user details have been stored to the database. After successful completion of the registration the mail to be send  automatically with the url to the Email-id which is provided by the user while registration.

Can anyone help me out in this.

Thanks in advance ,

Regards,
Els N.
19 REPLIES 19

animalfat
Champ in-the-making
Champ in-the-making
This solution did not fix the problem for me. The url link in the email still contains "localhost:8080", eventhough the email invite template reads "<my local server name>. I've changed the reload values to "true" and restarted the tomcat server. Anything else I should try?

ofrxnz
Champ in-the-making
Champ in-the-making
oh, i miss understood the issue….

here is the first bit of my web-client-config-custom.xml

there are a couple of places where you configure your servers name and address.  this is one of the bigger ones….hopefully this will set you in the right directions.  i think this is the section that got the domains/addresses working for me…let me know and ill see if i can find any other sections i changed

alfresco-config>

   <!– Example of overriding the from email address –>
  
   <config>
      <client>
         <from-email-address>Alfresco@company.com</from-email-address>
         <search-max-results>100</search-max-results>
      </client>
    
     <cifs-url-suffix>.company.com</cifs-url-suffix>
    
     <home-space-permission></home-space-permission>
   </config>
  
    <config evaluator="string-compare" condition="Server">
      <!– The public web server hosting this web client –>
      <server>
         <!– Enable and adjust the following settings to allow for proxied use of Alfresco
–>      
         <scheme>https</scheme>
         <hostname>server</hostname>
         <port>443</port>
        
      </server>
   </config>

animalfat
Champ in-the-making
Champ in-the-making
Nope, that didn't help. I also changed file-servers-custom.xml with no success. This is basic operations – how could it be so difficult to configure? What is the answer?

jacobfernandas
Champ in-the-making
Champ in-the-making
HI JUST GO THROUGH

•   Server: Debian Etch (odd packages from lenny and sid)
•   Alfresco: Alfresco Tomcat Community 2.1.0
•   JDK 6: package from Sid (aptitude search/show it to get the gory details)


Email configuration
Mail.host = smtp.gmail.com
mail.port = 465
mail.transport.protocol = smtp
mail.username = someuser@gmail.com
mail.password= asecretpassword
mail.smtp.auth = true
mail.smtp.socketFactory.port = 465
mail.smtp.socketFactory.class = javax.net.ssl.SSLSocketFactory
mail.smtp.socketFactory.fallback = false
mail.smtp.timeout = 25000
mail.smtp.starttls.enable = true
•   There, half the job is done. You will obviously need to modify the username and password (no someuser@gmail.com/asecretpassword will not work).

<!–                        –>
<!– MAIL SERVICE           –>
<!–                        –>
<bean id="mailService" class="org.springframework.mail.javamail.JavaMailSenderImpl">
  <property name="host">
    <value>${mail.host}</value>
  </property>
  <property name="port">
    <value>${mail.port}</value>
  </property>                                          
  <property name="protocol">                           
    <value>${mail.transport.protocol}</value>
  </property>
  <property name="username">
    <value>${mail.username}</value>
  </property>
  <property name="password">
    <value>${mail.password}</value>
  </property>
  <property name="defaultEncoding">
    <value>${mail.encoding}</value>
  </property>
  <property name="javaMailProperties">
    <props>
      <prop key="mail.smtp.auth">${mail.smtp.auth}</prop>
      <prop key="mail.smtp.socketFactory.port">${mail.smtp.socketFactory.port}</prop>
      <prop key="mail.smtp.socketFactory.class">${mail.smtp.socketFactory.class}</prop>
      <prop key="mail.smtp.socketFactory.fallback">${mail.smtp.socketFactory.fallback}</prop>
      <prop key="mail.smtp.timeout">${mail.smtp.timeout}</prop>
    </props>
  </property>
</bean>
1.   Create a user for yourself if you haven’t already done so. Make sure you entered a valid email address in the email field (modify user if you didn’t).
2.   Select an existing space or create a new one. View space details.
3.   Find the option Manage Space Users and select it
4.   Invite a user. Select your user, and whatever role you want. Make sure you say Yes to sending an email to the user.
5.   When you are done and click finish, your user should have been added as a space user. If Alfresco freezes for a long time here then something is wrong and you need to go back and fix things.
6.   Check your personal email. There should be a mail from your Alfresco email user.

animalfat
Champ in-the-making
Champ in-the-making
I can send an email. The issue is that the links (urls) in the email invitations contain "localhost:8080", which does not resolve on a users desktop.

animalfat
Champ in-the-making
Champ in-the-making
Eureka! The simple answer is: do not login using localhost:8080 host name, which I was doing testing on the Alfresco server.

sshadley
Champ in-the-making
Champ in-the-making
The file referenced "$Alfresco_Home\Tomcat\webapps\alfresco\web-inf\classes\alfresco\repository.properties" is missing from my install. I have the directories listed but after navigating to the final alfresco folder the repository.properties is missing. I have also tried searching my entire Alfresco install to no avail.

Does anyone know why this is occurring and/or how to fix it?

mrogers
Star Contributor
Star Contributor
You are probably using a version more recent than V2.1   The repository.properties still exists in 5.X (in the repository.war)  but it was never rerecommended to change it.

Please configure alfresco through alfresco-global.properties.

architecture121
Champ in-the-making
Champ in-the-making
HI friends,

The email subsystem allows you to configure the outbound and inbound SMTP email settings to interact with Alfresco.

There are two methods of running Alfresco email server:

    1. Running the email server process in the same JVM context as the repository
    2. Running the email server remotely and communicate with the repository using Remote Method Invocation (RMI)

    1.OutboundSMTP configuration properties
    Alfresco supports the ability to generate and send email to an external SMTP server.
    InboundSMTP configuration properties
    The InboundSMTP email subsystem type allows you to configure the behavior of the email server and service.

   2. Configuring the RMI email service
    You can run the email server remotely on a separate JVM and server, and have it interact with the Alfresco server using Remote Method Invocation (RMI).

   3. Handling messages by target node type
    This section describes the default behaviors for incoming email to different types of referenced nodes.
   
   4.Groups and permissions for email
    An email arriving at the Alfresco email server is unauthenticated. An authentication group, EMAIL_CONTRIBUTORS , must be created to allow permissions to be handled at a high level by the administrator.

BY Jigna,
http://www.3d-architectural-rendering.com

rjohnson
Star Contributor
Star Contributor
To echo mrogers comment…..

make your email changes in alfresco-global.properties not repository.properties. alfresco-global.properties will override repository.properties and there is usually an email section in alfresco-global.properties in most default installs.

For a standard SMTP without authentication

# Outbound SMTP properties
# use these properties to configure the out-bound SMTP server.
mail.host=your.host.net
mail.port=25
mail.encoding=UTF-8
mail.from.default=default@yours.co.uk
mail.protocol=smtp
# Additional Java Mail properties for SMTP protocol
mail.smtp.auth=false
mail.smtp.debug=false
mail.smtp.timeout=30000
mail.smtp.starttls.enable=false
# Additional Java Mail properties for SMTPS protocol
mail.smtps.auth=false
mail.smtps.starttls.enable=false

with authentication

# Outbound SMTP properties
# use these properties to configure the out-bound SMTP server.
mail.host=your.host.net
mail.port=25
mail.username=you@yours.co.uk
mail.password=password
mail.encoding=UTF-8
mail.from.default=default@yours.co.uk
mail.protocol=smtp
# Additional Java Mail properties for SMTP protocol
mail.smtp.auth=true
mail.smtp.debug=false
mail.smtp.timeout=30000
mail.smtp.starttls.enable=false
# Additional Java Mail properties for SMTPS protocol
mail.smtps.auth=false
mail.smtps.starttls.enable=false

should work. Gmail is different but I have no experience of it. There are other posts in the forum though that do