[Seaside] email with seaside
Simon De Baets
debaetssimon at gmail.com
Mon Oct 18 12:44:15 UTC 2010
How can i transform an email address in MIME header Value?
2010/10/17 Philippe Marschall <philippe.marschall at gmail.com>
> 2010/10/17 Simon De Baets <debaetssimon at gmail.com>:
> > Hi,
> > I use seaisde 3, and i want send email with this code :
> > |msg|
> > MailSender setSmtpServer.
> > msg := (MailMessage new setField: 'to' to: 'user at paperSpot.localhost';
> > setField: 'from' to: 'administrator at paperSpot.localhost';
> > setField: 'subject' to: 'Hello from MailMessage!';
> > body: 'Sending from MailMessage'; yourself).
> > (MailComposition new sendMailMessage: msg) submit.
> > but it doesn't function. Seaside give this error : "MessageNotUnderstood
> > ByteString>>asHeaderValue. In fact the error is localize on line :
> > (MailComposition new sendMailMessage: msg) submit. The wrong part of this
> > line is sendMailMessage: msg. Why?
> The second argument of #setField:to: must be a MIMEHeaderValue, not a
> seaside mailing list
> seaside at lists.squeakfoundation.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside