public class TestMail extends Object
First parameter - domain name for SMTP (RFC 822) server.
Second parameter - Email address to use for destination
Third parameter - Text to go with Email address
Fourth parameter - Email address of sender
Fifth parameter - Text to go with e-mail address of sender
Example:
bradleyross.demonstrations.testMail "smtp.foo.com"
"john.smith@foo.com" "John Smith" "bob.jones@foo.com" "Bob Jones"
Whether or not you will be able to use the SMTP port in this manner will depend on how it is configured.
Constructor and Description |
---|
TestMail() |