Hello,
I want to send an email upon insertion of a record, using the marvellous Velocity operation binding. Before this I was using an oldschool 'Emailer.java' like class that was using javax.mail.Message internally, and I would call this class from Java on the server side.
This oldschool method works, but if I use the same configuration for the velocity <mail> operationBinding, it gives the following error (I obscured the hostname etc):
This is my .ds.xml code (emailaddresses changed into something random):
And this is my server.properties snippet:
Now, when running the app, my oldskool servlet class just works. So the smtp actually is not down.
Any idea what can be causing this? Am I forgetting some configuration things?
I want to send an email upon insertion of a record, using the marvellous Velocity operation binding. Before this I was using an oldschool 'Emailer.java' like class that was using javax.mail.Message internally, and I would call this class from Java on the server side.
This oldschool method works, but if I use the same configuration for the velocity <mail> operationBinding, it gives the following error (I obscured the hostname etc):
Code:
=== 2011-05-31 19:08:58,301 [l0-4] INFO MailMessage - trying to connect to mail.somedomain.com === 2011-05-31 19:10:13,003 [l0-4] ERROR MailMessage - no smtp servers available, I tried: mail.somedomain.com java.lang.Exception: no SMTP servers available at com.isomorphic.mail.MailMessage.initMessage(MailMessage.java:460) at com.isomorphic.mail.MailMessage.buildMessage(MailMessage.java:320) at com.isomorphic.mail.TemplatedMailMessage.buildMessage(TemplatedMailMessage.java:239) at com.isomorphic.datasource.DSRequest.execute(DSRequest.java:1888) at com.isomorphic.servlet.IDACall.handleDSRequest(IDACall.java:199) at nl.sytematic.projects.Technicom.server.security.SecureIDACall.processRequest(SecureIDACall.java:125)
Code:
<operationBinding operationType="add"> <mail> <from>test@test.nl</from> <to>someEmail@someDomain.com</to> <messageTemplate>Test</messageTemplate> <subject>test</subject> </mail> </operationBinding>
Code:
... #--- mail settings for use in the <mail> tags in .ds.xml files mail.system.mail.smtp.submitter:noreply@somedomain.com mail.system.mail.smtp.auth:true mail.system.mail.smtp.host:mail.somehost.com mail.system.mail.smtp.port:587 mail.system.mail.smtp.user:someuser mail.system.mail.smtp.password:somepassword ...
Any idea what can be causing this? Am I forgetting some configuration things?
Comment