[Seaside] Re: [Seaside-dev] Accessing service from a mail .

sarath raj sarathraj99 at gmail.com
Sat Feb 23 06:55:46 UTC 2013


soln i got , put this in WAEMailMessgage . header is needed

headerAt: 'Content-type' put: 'text/html; charset=UTF-8'.

Thanks


On Sat, Feb 23, 2013 at 2:33 AM, Paul DeBruicker <pdebruic at gmail.com> wrote:

> On 02/22/2013 12:26 AM, sarath raj wrote:
> > 1) i created a REST Service in seaside sub class of WARestfulFilter  .
> > 2) Another Class "testing" derived from WAComponent with a textfield and
> > button .
> >
> > Action : when i click the button it will send a mail that specified in
> > the textfield , and the mail contains a link . that link represents the
> > REST service .
> > When the user clicks the link , it will start redirect to REST service .
> >
> > I done creating mail and all , but i am struck with how i can set a body
> > of a mail with html tags and all .
> > Body contain the link to the service
> >
> >
> >
> >
> > _______________________________________________
> > seaside-dev mailing list
> > seaside-dev at lists.squeakfoundation.org
> > http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
> >
>
>
> This would probably be better on the seaside users list, just because
> more people read it and could respond.  So I cc'd it.
>
>
> Do you want to send an html formatted email?  Is that what you're
> asking?  I don't think you can right now, but it shouldn't be too hard
> to get it working.
>
> You can get an html string like this:
>
> (WARenderCanvas builder render: [ :h | h heading level1; with: 'My Email'.
>         h image url: 'http://www.seaside.st/styles/logo-plain.png' ])
>
> But I don't know how to put it and a plain version of the body content
> in the body plus declaring the content type in the body.  You'd need to
> add the Content-Type in the email headers plus a boundary and then in
> the body the boundary at the start of the plain & html sections then
> also a Content-Type declaration for each section.
>
>
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>



-- 
Sarath Raj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20130223/a640fef6/attachment.htm


More information about the seaside mailing list