SMTP Email Setup

1. Create or edit the pluginoverrides.xml file using the File Manager: /WEB-INF/pluginoverrides.xml and change the values to match your setup.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">

<beans>
   <bean id="postMail" class="org.entermedia.email.PostMail">
        <property name="smtpSecured">
            <value>true</value>
        </property>
        <property name="smtpUsername">
            <value>someusername@test.com</value>
        </property>
        <property name="smtpPassword">
            <value>password1234</value>
        </property>
        <property name="sslEnabled">
            <value>false</value>
        </property>
        <property name="smtpServer">
            <value>smtp.elasticemail.com</value>
        </property>
        <property name="port">
            <value>25</value>
        </property>
        <property name="pageManager">
            <ref bean="pageManager" />
        </property>
   </bean>
</beans>

 

Or for Google Mail:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">

<beans>
   <bean id="postMail" class="org.entermedia.email.PostMail">
       <property name="smtpUsername">
          <value>test@corp.com</value>
       </property>
       <property name="smtpPassword">
          <value>password1234</value>
       </property>
       <property name="smtpSecured">
          <value>true</value>
       </property>
       <property name="enableTls">
          <value>true</value>
       </property>
       <property name="smtpServer">
          <value>smtp.gmail.com</value>
       </property>
       <property name="port">
          <value>587</value>
       </property>
          <property name="pageManager">
       <ref bean="pageManager" />
          </property>
       <property name="moduleManager">
          <ref bean="moduleManager" />
       </property>
  </bean>
</beans>

You will need to configure Google to allow the connection: https://support.google.com/accounts/answer/6010255

2. Restart the web server
Restart EnterMedia