commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frances <fd...@yahoo.com>
Subject Re: Email question..
Date Thu, 09 Feb 2006 18:49:55 GMT
Michael Atlas wrote:
> Try this:
> 
> String emailStatus = email.send();
> if(emailStatus.equals("")) throw new Exception ("Sending of message
> failed.");

that did it..  thank you very much....:)
    (still don't get how you can call a method by just putting name of 
method in a string... but I guess that's for another forum.......;)


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