I want to be able to send an email from the command line through a Java class that uses the JavaMail API. I would like the? internals of the command to be written in Java because JDK 1.5 is already installed on the target system and other software uses the JavaMail API.
## Deliverables
I need to be able to execute the following command to send an email.
* ./java {send_email_class} --emailTo "foo;bar" --subject "test" --body "test message" --emailFrom "baz" --mailHost [login to view URL] --smtpport 587 --smtpssl_enable false --authenticate true --authenticateUser? gmailcom --authenticatePassword pwHere --starttls_enable true --messageContextType text/html --charset UTF-8
The Java command must be able to accept the following parameters when called from a bash script:
* toAddressList
* subject
* body
* fromAddress
* mailHost
* smtpport
* smtpssl_enable (true or false)
* authenticate (true or false)
* authenticateUser
* authenticatePassword
* starttls_enable (true or false)
* messageContentType
* charset
Time is of the essence.? The deadline we agree to must be met.
### Acceptance Testing
1. Call the command as stated above, using valid email addresses.
2. Verify that the email? is received and contains the expected subject and body.