0

I want to send an email to be sent from my Orbeon Form application to a host that is not gmail, following are the properties I added to my properties-local.xml

`<property as="xs:string" name="oxf.fr.email.smtp.host.MonashHealth.*"   value="remote.elodigital.com.au"/>
 <property as="xs:string" name="oxf.fr.email.from.MonashHealth.*"   value="orbeon@elodigital.com.au"/>
 <property as="xs:string" name="oxf.fr.email.to.MonashHealth.*"   value="nilpath899@gmail.com,orbeon@elodigital.com.au"/>
 <property as="xs:string" name="oxf.fr.email.smtp.username.MonashHealth.*"    value="orbeon"/>
 <property as="xs:string" name="oxf.fr.email.smtp.credentials.MonashHealth.*" value="******"/>
 <property as="xs:string" name="oxf.fr.email.smtp.encryption.MonashHealth.*"  value="ssl"/>
 <property as="xs:string"  name="oxf.fr.email.smtp.port.MonashHealth.*"  value="25"/>`

but I get the following error

`javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection class com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection`

Are there any addtional properties that I must set? Need help please.

n.path
  • 115
  • 11

1 Answers1

0

It might be because you are requiring SSL but your server on port 25 might respond with plain text. See this other question for a similar error.

Community
  • 1
  • 1
ebruchez
  • 7,760
  • 6
  • 29
  • 41
  • Thank You for replying, Could I please know if there is any way to add additional email properties other than the one's pre-defined by Orbeon? For example protocol, socket factory class, socket factory fall back...etc – n.path Apr 18 '16 at 10:54
  • I think all the properties are documented. You can check the [source code](https://github.com/orbeon/orbeon-forms/blob/master/src/main/scala/org/orbeon/oxf/processor/EmailProcessor.scala) to see how it actually works if that helps. – ebruchez Apr 18 '16 at 17:05
  • Thanks, Could I please know, if this works with imaps protocol as well? Suppose I can not use smtp, is there a way I could configure to set the protocol to imaps? – n.path Apr 20 '16 at 03:14
  • Sending email uses SMTP not IMAP. See also this [StackOverflow question](http://stackoverflow.com/questions/1627596/how-can-you-send-mail-using-imap). – ebruchez Apr 20 '16 at 17:41
  • Thank you so much, changed the mail server configurations to use SMTP and it worked. – n.path Apr 22 '16 at 08:35