Hello.<div><br></div><div>Set fullDocument to true to get a HTML Document with a head too, instead only the body (but not if it is necessary to send html in an email):</div><div> WAHtmlCanvas builder fullDocument: true; render: [ :html | ...</div>
<div><br></div><div>I use this code for send email:</div><div><br></div><div><div>sendEmailTo: to subject: subject text: textBody html: htmlBody</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>&quot;Send multi-part MIME email message.&quot;</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>| server port user password smtpClient mailMessage |</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>server :=  (self application preferenceAt: #smtpServer).</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>port := (self application preferenceAt: #smtpPort).</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>user := (self application preferenceAt: #smtpUsername).</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>password := (self application preferenceAt: #smtpPassword).</div></div><div><br></div><div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>[ mailMessage := MailMessage empty. </div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>mailMessage setField: &#39;from&#39; toString: from.</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>mailMessage setField: &#39;to&#39; toString: to.</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>mailMessage setField: &#39;subject&#39; toString: subject.</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>mailMessage addAlternativePart: textBody contents contentType: &#39;text/plain&#39;.</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>mailMessage addAlternativePart: htmlBody contents contentType: &#39;text/html&#39;.</div><div><span class="Apple-tab-span" style="white-space:pre">        </span></div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>(smtpClient := ZdcSecureSMTPClient new)</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>user: user; </div><div><span class="Apple-tab-span" style="white-space:pre">                </span>password: password.</div>
<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>smtpClient openOnHost: (NetNameResolver addressForName: server) port: port.</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>^ smtpClient </div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>mailFrom: from to: { to } text: mailMessage text;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>quit; </div><div><span class="Apple-tab-span" style="white-space:pre">                </span>close;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>yourself ] on: Exception do: [ :ex | ^ false ].</div></div><div><br><br>Regards.<br><br><div class="gmail_quote">2013/2/23 sarath raj <span dir="ltr">&lt;<a href="mailto:sarathraj99@gmail.com" target="_blank">sarathraj99@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif;font-size:large;color:rgb(0,0,102)">soln i got , put this in WAEMailMessgage . header is needed</div>
<div class="gmail_default" style="font-family:georgia,serif;font-size:large;color:rgb(0,0,102)">

<br></div><div class="gmail_default" style="font-family:georgia,serif;font-size:large;color:rgb(0,0,102)"><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px">headerAt: &#39;Content-type&#39; put: &#39;text/html; charset=UTF-8&#39;.</span><br>


</div><div class="gmail_default" style="font-family:georgia,serif;font-size:large;color:rgb(0,0,102)"><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px"><br></span></div><div class="gmail_default" style="font-family:georgia,serif;font-size:large;color:rgb(0,0,102)">


<span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px">Thanks </span></div></div><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">On Sat, Feb 23, 2013 at 2:33 AM, Paul DeBruicker <span dir="ltr">&lt;<a href="mailto:pdebruic@gmail.com" target="_blank">pdebruic@gmail.com</a>&gt;</span> wrote:<br>


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