commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Atlas" <MAt...@basistech.com>
Subject RE: Email question..
Date Thu, 09 Feb 2006 18:16:59 GMT
Try this:

String emailStatus = email.send();
if(emailStatus.equals("")) throw new Exception ("Sending of message
failed.");



-----Original Message-----
From: news [mailto:news@sea.gmane.org] On Behalf Of Frances
Sent: Thursday, February 09, 2006 1:16 PM
To: commons-user@jakarta.apache.org
Subject: Email question.. 

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


---------------------------------------------------------------------
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