[Seaside] email with seaside
Simon De Baets
debaetssimon at gmail.com
Mon Oct 18 12:44:15 UTC 2010
Hi,
How can i transform an email address in MIME header Value?
Thanks,
Simon
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
> String.
>
> Cheers
> Philippe
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20101018/2fc78e0d/attachment.htm
More information about the seaside
mailing list