See: Description
| Class | Description |
|---|---|
| JavamailExample |
Supported system properties:
malle.javamail.password - allows to specify the authentication password. See Gmail command line example below.to - a comma-separated list of recipients.from - the sender. If omitted, mail.user will be used and must be present.subject - the subject.
plain, html - at least one of these must specify the mail body.
Gmail command line example:
java -Dmail.smtp.auth=true \
-Dmail.smtp.starttls.enable=true \
-Dmail.smtp.host=smtp.gmail.com \
-Dmail.smtp.port=587 \
-Dmail.user=youruser@gmail.com \
-Dmalle.javamail.password=YourAppPassword \
-Dto=recipient@example.com \
-Dsubject="Malle Javamail Example" \
-Dplain="Hello from Malle Javamail Example" \
-Dhtml="<h1>Hello from Malle Javamail Example!</h1>" \
-jar malle-javamail-example-<version>-allinone.jar
Copyright © 2015. All rights reserved.