<br><br><div class="gmail_quote">On Jan 4, 2008 12:02 PM, Ramon Leon <<a href="mailto:ramon.leon@allresnet.com">ramon.leon@allresnet.com</a>> 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">> Hi Seaside,<br>><br>> Can anyone enlighten me on how to send emails<br>> programmatically from Squeak? Is there a mail server in<br>> Squeak that can be used for this purpose as opposed to a
<br>> stand-alone third-party mail server?<br>><br>> Many thanks in advance.<br>><br>> Ching<br><br></div></div>Call MailSender setSmtpServer and configure your smtp host, then use<br>something like this...
<br><br>SeasidePlatformSupport<br> deliverMailFrom: '<a href="mailto:some.from@address.com">some.from@address.com</a>'<br> to: {'<a href="mailto:bla@bla.com">bla@bla.com</a>'. '<a href="mailto:foo@bar.com">
foo@bar.com</a>'}<br> text: (String streamContents: [:s |<br> s<br> nextPutAll: 'Subject: ' ;<br> nextPutAll: 'Your Subject' ;<br> cr ;<br>
nextPutAll: 'Content-type:' ;<br> nextPutAll: 'text/html' ; "or text/plain"<br> cr ; cr ;<br> nextPutAll: 'Bla Bla Bla' ])<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't know what works anymore. I will surely try out this code.
<br><br>Do I need some sort of login/authentication code to access my mail server at: '<a href="mailto:some.from@address.com">some.from@address.com</a>'? </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>