email - How to use @MailSessionDefinition in Wildfly -
i trying use @mailsessiondefinition configure mailsender in wildfly 8.2. using annotation not enough setup, had use specific xml, present in wildfly. tips?
here code:
@mailsessiondefinition(name = "java:jboss/mail/gmail", host = "smtp.gmail.com", user="user", password="password", transportprotocol = "smtps", from="test@gmail.com", properties = { "mail.debug=true", "mail.smtp.port=587", "mail.smtp.auth=true", "mail.smtp.starttls.enable=true" }) public class mailconfiguration { }
Comments
Post a Comment