[Seaside] Seaside Error Handler for emailing the error

Philippe Marschall philippe.marschall at gmail.com
Sat May 3 12:45:14 UTC 2008


2008/5/3, cdrick <cdrick65 at gmail.com>:
> oups, still errors...
>
>  YourErrorHandler>>open: anException
>         |mailText sender target|
>         sender := 'seaside at image.com'.
>         target := #('admin at gmail.com').
>         mailText :=
>  'From: ', sender ,'
>  To: ', target first , '
>
> Subject: error in your seaside app
>  '.
>         (SeasidePlatformSupport  walkbackStringsFor: anException)
>                 do: [ :each | mailText := (mailText , each) ]
>
>                 separatedBy: [ String cr].
>
>
>         SeasidePlatformSupport  deliverMailFrom: sender to: target
>  text: mailText .

You'll want String class >> #streamContents:. Note you need two crs
after the subject. I know this is PHP-style, that's why there is:
http://code.google.com/p/seaside/issues/detail?id=41

You can also have a look at Debugger >> #mailOutBugReport

Cheers
Philippe


More information about the seaside mailing list