[opencms-dev] smtp authentication

Lammersdorf, Lorenz ll at metrohm.com
Wed Nov 28 16:08:20 CET 2012


hi list,

my opencms-system.xml says:

<mailhost name="mail.server.name" port="123" order="10" protocol="smtp" user="user at domain.name" password="narf" />

"mail.server.name" is expecting smtp auth and the given user / password is valid. 
aifaik a configured username and password are used for authentication, but the authentication fails. according to the mailhosts support the cms tries to connect to the server using the correct port but it doesn't try to authenticate.

if i add 

CmsHtmlMail sm = new CmsHtmlMail();
sm.setAuthentication("user at domain.name", "narf ");

to the template the authentication works. 

what's wrong?

thanks!
lorenz




More information about the opencms-dev mailing list