12-25-2008 08:09 PM
<property name="host">
<value>smtp.gmail.com</value>
</property>
<property name="port">
<value>465</value>
</property>
<property name="protocol">
<value>smtps</value>
</property>
<property name="username">
<value>userName@gmail.com</value>
</property>
<property name="password">
<value>UserPassword</value>
</property>
<property name="defaultEncoding">
<value>UTF-8</value>
</property>
<property name="javaMailProperties">
<props>
<prop key="mail.smtps.auth">true</prop>
<prop key="mail.smtp.socketFactory.port">465</prop>
<prop key="mail.smtp.socketFactory.class">javax.net.ssl.SSLSocketFactory</prop>
<prop key="mail.smtp.socketFactory.fallback">false</prop>
<prop key="mail.smtp.timeout">25000</prop>
<prop key="mail.smtps.starttls.enable">true</prop>
</props>
</property>
01-10-2012 12:39 PM
Yes that is a concern. However from memory the subsystem framework was new in 3.2 and I can't remember in which release SMTP was refactored to use subsystems. Its possible your version has "old style" configuration which would be custom-email-server.properties.
You should never touch anything below WEB-INF (since its Alfresco's private implementation detail,) you can look but you shouln't change stuff because it will get lost on upgrade..
The first thing to check is that you can connect to your email server (gmail?) from the box that you want to send email from. Use whatever email client you have available. That will validate all the paths and settings needed. Then you can worry about alfresco's configuration.
02-07-2012 03:32 PM
02-08-2012 01:46 PM
### E-mail site invitation setting ###
notification.email.siteinvite=false
### E-mail site invitation setting ###
notification.email.siteinvite=true
02-08-2012 02:03 PM
I've solved the problem. It was actually very simple but I haven't seen this documented anywhere..
In the default installation version of alfresco-global.properties there is a line that reads:-### E-mail site invitation setting ###
notification.email.siteinvite=false
Just change it to read:-### E-mail site invitation setting ###
notification.email.siteinvite=true
02-08-2012 05:33 PM
Now, we need to enable SMTPS by overriding the mailService bean. Create and edit <TOMCAT_HOME>/classes/alfresco/extension/custom-email-context.xml and paste in the following:
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<!– –>
<!– 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.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.smtps.auth">${mail.smtps.auth}</prop>
<prop key="mail.smtps.starttls.enable">${mail.smtps.starttls.enable}</prop>
</props>
</property>
</bean>
</beans>
02-09-2012 09:41 AM
Have you followed all of the steps on the link I posted above?Now, we need to enable SMTPS by overriding the mailService bean. Create and edit <TOMCAT_HOME>/classes/alfresco/extension/custom-email-context.xml and paste in the following:
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<!– –>
<!– 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.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.smtps.auth">${mail.smtps.auth}</prop>
<prop key="mail.smtps.starttls.enable">${mail.smtps.starttls.enable}</prop>
</props>
</property>
</bean>
</beans>
02-09-2012 11:28 PM
05-10-2014 10:04 AM
02-10-2012 11:22 AM
I did except for the "Email Action Executor"
Alfresco uses the action service to send email.
MailActionExecuter The following properties can be set.
PARAM_NAME = "mail"
PARAM_TO = "to"
PARAM_TO_MANY = "to_many"
PARAM_SUBJECT = "subject"
PARAM_TEXT = "text"
PARAM_FROM = "from"
PARAM_TEMPLATE = "template";
FROM_ADDRESS = "alfresco@alfresco.org";
I am not sure of how to do this one. If we have to set this manually, can you let me know on how to do this? This is the only step i missed.
02-13-2012 07:32 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.