Introduction - If you have any usage issues, please Google them yourself
First you need to have a send mail, the general mailbox has SMTP, POP3 services, such as QQ mailbox, mailbox login QQ open SMTP service, open the server will prompt you to set up a separate password, this password is the password to log in with normal mail is different, this is the SMTP landing with the password, so here to write down SMTP independent program will use the password.
(the preparations are so simple, just one mailbox that opens the SMTP service); also requires a JAR package (javax.mail.jar); already available in java1.6, if not added to the jar package.