Created
April 27, 2012 13:29
-
-
Save MiloCasagrande/2509214 to your computer and use it in GitHub Desktop.
New Glassfish JavaMail Session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| asadmin --user admin create-javamail-resource --mailhost="smtp.gmail.com" --mailuser="GMAIL_USERNAME" --fromaddress="GMAIL_ADDRESS" --debug="false" --enabled="true" --description="A new JavaMail Session!" --property="mail.smtp.password=YOUR_PASSWORD:mail.smtp.auth=true:mail.smtp.port=465:mail.smtp.socketFactory.fallback=false:mail.smtp.socketFactory.port=465:mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory" "mail/newsession" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The socket factory and port properties aren't needed, just set mail.smtp.ssl.enable=true.