Description of problem: You cannot configure login config for custom-mail server configuration. This results in not beeing able to connect custom-mail server if it uses authentication Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: <mail-session jndi-name="java:jboss/mail/Custom"> <custom-server name="smtp" outbound-socket-binding-ref="mail-smtp-tls"> <login name="user at gmail.com" password="password"/> <property name="host" value="smtp.gmail.com" /> <property name="port" value="587" /> <property name="starttls.enable" value="true" /> </smtp-server> </mail-session> Actual results: failed to parse xml configuration / login not working Expected results: i can send mail Additional info:
Verified 6.1.0.ER6 PS: just for the record, example in first comment is not working due to wrong closing element </smtp-server>