[opencms-dev] email question

Robert Petermeier robert2.0 at gmx.de
Wed Mar 16 21:26:29 CET 2005


Alexis Torreno schrieb:
> 
> try{
>  email.send();
> } catch (EmailException e)
>  [code goes in here]
> }
> 
> Now, when I run my JSP, I get a compile-time error, because java doesn't
> like EmailException (i.e. cannot resolve symbol).
> 
> Okay, should be easy to fix, maybe I just forgot to import something? I am
> already importing org.opencms.mail.* and org.apache.commons.mail.*.
> 
> Am I missing an import? Do I need an extra jar file in my /lib folder?

Not with v6, but with v5 I think you need to put the Java mail API from
Sun and the jar from commons email in WEB-INF/lib.


Regards,
Robert



More information about the opencms-dev mailing list