« Return to Thread: Seaside Error Handler for emailing the error

Re: Seaside Error Handler for emailing the error

by cdrick :: Rate this Message:

Reply to Author | View in Thread

another try... this one works but need some tuning.

open: anException
        |maillerait sender target|
        sender := 'seaside image'.
        target := 'admin@...'.
        mailText :=
'From: ', sender ,'
To: ', target , '
Subject: error in your seaside app
'.
        (SeasidePlatformSupport  walkbackStringsFor: anException)
                do: [ :each | mailText := (mailText , each) ]
                separatedBy: [ String crlf ].
        SeasidePlatformSupport  deliverMailFrom: sender to: #(target) text: mailText .

        WARenderLoop new session redirectWithMessage: 'error' delay: 2.
"others,   are there better ways to do that?  "


Cédrick

_______________________________________________
seaside mailing list
seaside@...
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

 « Return to Thread: Seaside Error Handler for emailing the error