This demo shows how to use the SMTPMailBean component to add email support to your application. Its extremely simple to use - simply specify the mailserver, to, from, subject and message properties and then invoke the sendMail() method.
This is a non-visual protocol bean, and so it may appear invisible or not work correctly with certain bean tools (SMTPMailBean has been tested with Sun's BeanBox and Borland JBuilder). Instructions within the source describe how to make the bean a visual component if your development tool doesn't support non-visual components.
Source for MailTest | Source for SMTPMailBean