You can try the following address:

[url]http://oracle.com/oramag/code/index.html[/url]

the is a code for it under the title "sending e-mail ...."

Take care