[Seaside] email with seaside
philippe.marschall at gmail.com
Sun Oct 17 10:59:09 UTC 2010
2010/10/17 Simon De Baets <debaetssimon at gmail.com>:
> I use seaisde 3, and i want send email with this code :
> 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 String.
More information about the seaside