Class SimpleMail

java.lang.Object
fc.util.SimpleMail

public class SimpleMail extends Object
Sends a simple SMTP message. Useful for sending system and admin alerts from the command line or within an application.

Notes:
Make sure that the CLASSPATH is set properly. If invoked from the command line, the CLASSPATH should include the following classes:

  1. activation.jar  (java activation framework API's, needed for javamail)
  2. mail.jar        (javamail API's)
  3. fc.util.Args    (for parsing arguments)
  
Also, manually do a nslookup and find out the MX for the mail server that you should use. Most any mail servers will not allow relays to email addresses outside of that servers domain, so make sure the recipient is in the same domain as the mail server.