On Fri, Oct 12, 2001 at 07:17:10PM +1000, Andrew O'Brien wrote: > getting it ready to go live and played with EMBPERL_MAIL_ERRORS_TO
> Everything now works great, except that I'm getting 3 copies of > every error email. Has anyone else experienced this? The emails have > different message IDs and all are sent one after the other. Right, after getting some time to look at this further I noticed that Embperl was sending the error mail at the end of every Execute. ie in epmain.c::EndOutput Most of my pages follow this basic outline: base.epl: Do init stuff Execute(layout.epl) layout.epl: Do layout stuff and somewhere in this do Execute(*) for the content It seems that even when I placed a "die" in base.epl the same error page was being sent on the cleanup of *, of layout.epl and base.epl. Two questions: 1. Is the error message ever different at any of these points? (I couldn't see any difference when I tested with errors in any of these places but I did only cause errors with die) 2. If not, then what are the reasons against only sending the error mail at the end of base.epl and skipping it for the other nested Executes? Cheers -- Andrew O'Brien Product Engineer email: [EMAIL PROTECTED] Switch Online Group Pty Limited phone: +61 2 9299 1133 ABN 89 092 286 327 fax: +61 2 9299 1134 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]