I have developed many application where i have to do mailing to some one.
Use java mail api to send email through any server.
You just have to specify the mail server address and it's port...