Accessing service from a mail .

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Accessing service from a mail .

sarathraj99
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
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
Reply | Threaded
Open this post in threaded view
|

Re: Accessing service from a mail .

Paul DeBruicker
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
> [hidden email]
> 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-dev mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev
Reply | Threaded
Open this post in threaded view
|

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

sarathraj99
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 <[hidden email]> 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
> [hidden email]
> 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
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



--
Sarath Raj

_______________________________________________
seaside-dev mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev