commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dion Gillard" <dion.gill...@gmail.com>
Subject Re: Jelly email
Date Wed, 04 Oct 2006 12:21:24 GMT
It'd be interesting to see how well this would integrate in with the
existing mail stuff.

On 9/27/06, Mark Tombs <mark.tombs@gmail.com> wrote:
> As promised, some example jelly. Putting multipart=true is a terrible hack
> but I couldn't think of a way to tell if the mail:mail tag contained any
> parts at the time.
> And I can't do multiple to or from, as I didn't need it at the time of
> writing either.
>
> <!-- connect to the smtp server -->
>
> <mail:setServer type="smtp" server="mailserver.notreal.com" port="25" />
>
> <!-- to send a simple, text mail -->
>
> <mail:mail to="mark.tombs@gmail.com" from="mark.tombs@gmail.com"
> subject="example simple mail">
> This is just a text mail.
> </mail:mail>
>
> <!-- send a multi-part mail -->
>
> <mail:mail to="mark.tombs@gmail.com" from="mark.tombs@gmail.com"
> subject="example simple mail" multipart="true">
>   <mail:part type="html" encoding="utf-8">
>         <h1>This an html mail.</h1>
>   </mail:part>
>   <mail:part type="plain">
>        This is the plain text part.
>   </mail:part>
>   <mail:part type="image/png" file="path-to-a-file.png" />
>   <mail:part type="image/png" file="path-to-another-file.png" />
> </mail:mail>
>
> <!-- get mails from a pop server -->
>
>     <mail:setServer type="POP" server="pop.fake.com" userName="user"
> password="********" />
>
>     <mail:getMessages var="messages" folder="inbox" />
>         <core:forEach items="${messages}" var="message">
>            <!-- do something to the mails -->
>        </core:forEach>
>
>
>
>
> On 9/26/06, Mark Tombs <mark.tombs@gmail.com> wrote:
> >
> > Hmmm, same dependencies I'm afraid.  I'll sort out some example jelly
> > later on.
> >
> > Mark
> >
> >
> > On 9/26/06, Paul Libbrecht <paul@activemath.org> wrote:
> > >
> > > What are the dependencies ? I know that the javamail (and activation)
> > > dependencies of commons-jelly-email have been a problem to many.
> > > If you can minimize this, it would be interesting.
> > > Can you also send an example jelly snippet ?
> > >
> > > paul
> > >
> > >
> > > Mark Tombs wrote:
> > > > Its completely new. I wrote it for my own use, for sending multi-part
> > > > mails
> > > > with both plain text and html parts. Its still work in progress, but I
> > > > thought you might be interested.
> > > >
> > > > On 9/26/06, Dion Gillard <dion.gillard@gmail.com > wrote:
> > > >>
> > > >> Mark,
> > > >>
> > > >> is this an extension of the existing email taglib? Or something new?
> > > >>
> > > >> http://jakarta.apache.org/commons/jelly/libs/email/
> > > >>
> > > >> On 9/25/06, Mark Tombs <mark.tombs@gmail.com> wrote:
> > > >> > Hi
> > > >> >
> > > >> > I've written some jelly tags for creating emails that can send
> > > >> multi-part
> > > >> > mails, including html and attachments. I've also started writing
> > > some
> > > >> tags
> > > >> > that can read mail too.  Is this of any interest to the jelly
team?
> > >
> > > >> >
> > > >> > On another note, I haven't noticed a lot of development of jelly
> > > >> recently, and
> > > >> > the ant and maven builds are getting out of date... is the project
> > > >> active at
> > > >> > the moment?
> > > >> >
> > > >> > thanks
> > > >> >
> > > >> > Mark
> > > >> >
> > > >> >
> > > ---------------------------------------------------------------------
> > > >> > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> > > >> > For additional commands, e-mail: commons-user-help@jakarta.apache.org
> > >
> > > >> >
> > > >> >
> > > >>
> > > >>
> > > >> --
> > > >> http://www.multitask.com.au/people/dion/
> > > >> Rule of Acquisition #91: Hear all, trust nothing.
> > > >>
> > > >> ---------------------------------------------------------------------
> > > >> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> > > >> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> > > >>
> > > >>
> > > >
> > >
> > >
> > >
> > >
> >
>
>


-- 
http://www.multitask.com.au/people/dion/
Rule of Acquisition #91: Hear all, trust nothing.

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