e-mail fail.

3 views
Skip to first unread message

Walter Mourão

unread,
Sep 10, 2009, 8:25:47 AM9/10/09
to emf...@googlegroups.com
Hi folks,
it looks like my EmForge installation isn't sending e-mails and I could not realize how to turn on the javamail logs. Hints ?

Cheers,

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br

vikas khengare

unread,
Sep 10, 2009, 11:23:07 AM9/10/09
to emf...@googlegroups.com
Hi Walter,

For email sending though EmForge you need to do settings in 2 files

1) /EmForge/WEB-INF/classes/config.properties

email.host=your_SMTP_HOST_NAME_or_IP_ADDRESS
email.port=default_port
email.username=test...@mailhost.com
email.password=testpassword

eg
email.host=smtp.gmail.com
email.port=465
email.username=test...@gmail.com
email.password=testpassword

2) /EmForge/WEB-INF/classes/META_INF/spring/emforge-jbpm.xml

<bean id="emailSender" class="ru.emdev.EmForge.email.EmailSenderImpl">

        <property name="host" value="${email.host}" />
        <property name="fromMailAccount" value="${email.username}" />
        <property name="port" value="${email.port}"/>
        <property name="username" value="${email.username}"/>
        <property name="password" value="${email.password}"/>
        <property name="javaMailProperties">
            <props>
                <!-- Use SMTP-AUTH to authenticate to SMTP server -->
                <prop key="mail.smtp.auth">true</prop>
                <!-- Use TLS to encrypt communication with SMTP server -->
                <prop key="mail.smtp.starttls.enable">false</prop>
            </props>
        </property>

    </bean>

Thank you.

regards,
Vikas Khengare

2009/9/10 Walter Mourão <walter...@gmail.com>



--
Vikas Khengare
[ vikas.k...@gmail.com ]

Walter Mourão

unread,
Sep 10, 2009, 12:37:59 PM9/10/09
to emf...@googlegroups.com
Hi Vikas.
I've done a bit different:

1- added the properties to config-user.properties since I'm already using it to set other properties. The only change I've made was: email.port=-1 to avoid a NumberFormatException.
2 - added the bean to emforge-jbpm-web.xml (I didn't find emforge-jbpm.xml).

Still no luck :-( Hints ?

Alexey Kakunin

unread,
Sep 10, 2009, 1:02:47 PM9/10/09
to emf...@googlegroups.com
Hi Walter!

Vikas example based on old code-base, since used old "ru.emdev." packages

In latest version no any changes in xml required (I hope) - everything may be done in config-user.properties (you are right - it is better to use it instead of config.properties to do not lost your changes during upgrade)

Setup Guide has simple instructions how to setup emailing (http://www.emforge.org/wiki/EmForgeSetupGuide#section-EmForgeSetupGuide-EmailConfiguration) - I've tested it for both - non required authentication (localhost) as well as required authentication (gmail) - and it worked well

If any error happens during sending email - EmForge will log it with ERROR_level - so, please check server logs)
If nothing generated - in this case it looks like email were sent correctly via smtp - and you need to check smtp logs (if you are using your own smtp server).

So - just a question - what server are you using to sent emails - some own smtp - or some external server (like gmail)?
--
With Best Regards,
Alexey Kakunin, EmDev Limited

Professional Software Development:
http://www.emdev.ru

Walter Mourão

unread,
Sep 10, 2009, 1:23:36 PM9/10/09
to emf...@googlegroups.com
Hi Alexey,
 
So - just a question - what server are you using to sent emails - some own smtp - or some external server (like gmail)?

I'm using an external server (godaddy). No errors and no e-mail... I will try to use gmail and, if no luck, to configure javamail to show some more logs.

thanks,
 

Walter Mourão

unread,
Sep 15, 2009, 8:36:33 AM9/15/09
to emf...@googlegroups.com
The e-mail is fine. The issue was related with configuration of ports and authentication.

Thanks,

Alexey Kakunin

unread,
Sep 19, 2009, 1:07:44 PM9/19/09
to emf...@googlegroups.com
Hi Walter! Thank you for clarification
But it is alittle bit strange - according to EmailSender code it should catch all exceptions and write error-message into logs

2009/9/15 Walter Mourão <walter...@gmail.com>
Reply all
Reply to author
Forward
0 new messages