<br><br><div class="gmail_quote">On Jan 4, 2008 12:02 PM, Ramon Leon &lt;<a href="mailto:ramon.leon@allresnet.com">ramon.leon@allresnet.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">&gt; Hi Seaside,<br>&gt;<br>&gt; Can anyone enlighten me on how to send emails<br>&gt; programmatically from Squeak? Is there a mail server in<br>&gt; Squeak that can be used for this purpose as opposed to a
<br>&gt; stand-alone third-party mail server?<br>&gt;<br>&gt; Many thanks in advance.<br>&gt;<br>&gt; Ching<br><br></div></div>Call MailSender setSmtpServer and configure your smtp host, then use<br>something like this...
<br><br>SeasidePlatformSupport<br> &nbsp; &nbsp; &nbsp; &nbsp;deliverMailFrom: &#39;<a href="mailto:some.from@address.com">some.from@address.com</a>&#39;<br> &nbsp; &nbsp; &nbsp; &nbsp;to: {&#39;<a href="mailto:bla@bla.com">bla@bla.com</a>&#39;. &#39;<a href="mailto:foo@bar.com">
foo@bar.com</a>&#39;}<br> &nbsp; &nbsp; &nbsp; &nbsp;text: (String streamContents: [:s |<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;s<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nextPutAll: &#39;Subject: &#39; ;<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nextPutAll: &#39;Your Subject&#39; ;<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cr ;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nextPutAll: &#39;Content-type:&#39; ;<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nextPutAll: &#39;text/html&#39; ; &quot;or text/plain&quot;<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cr ; cr ;<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nextPutAll: &#39;Bla Bla Bla&#39; ])<br>
</blockquote><div>Thanks Ramon,<br>I am currently downloading the new Seaside one-click experience because I have way too much junk in my old Squeak image I don&#39;t know what works anymore. I will surely try&nbsp; out&nbsp; this code. 
<br><br>Do I need some sort of login/authentication code to access my mail server at: &#39;<a href="mailto:some.from@address.com">some.from@address.com</a>&#39;? </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Ramon Leon<br><a href="http://onsmalltalk.com" target="_blank">http://onsmalltalk.com</a><br><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></blockquote>
</div><br>