commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frances <fd...@yahoo.com>
Subject Email question..
Date Thu, 09 Feb 2006 18:16:10 GMT
when send e-mail w/Jakarta Commons Email Package e-mail gets sent 
twice..  here's relevant code:

email.setHtmlMsg(msgBody);
email.send();
if (email.send().equals("")) throw new Exception ("Sending of message 
failed.");

only wait it gets sent only once is if I take out if(email....) line.. 
why does this method return a string?  maybe I'm not doing the check 
right?  would appreciate suggestions.. thank you...

Frances



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message