I need to send an e-mail from one of my classes (using commons-email) and
I'd like to be able to configure my SMTP server data through properties in
project.properties.
I think I remember from MDN that there is a mean to do so thanks to System
properties, but I don't have the book right now and I really need that.
For example I want to write that in my project.properties :
stmp.server=relay.chello.be
And that in my emailing class :
SimpleEmail email = new SimpleEmail();
email.setHostName(System.getProperties("smtp.server"));
How can I do that ?
--
Sébastien Arbogast
Blog : http://www.sebastien-arbogast.com
The Epseelon Project : http://www.epseelon.org
Projet Phénix : http://phenix.netbios.fr