--- parser3/src/classes/mail.C 2002/03/25 11:36:23 1.55 +++ parser3/src/classes/mail.C 2002/03/27 13:12:29 1.59 @@ -4,7 +4,7 @@ Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) - $Id: mail.C,v 1.55 2002/03/25 11:36:23 paf Exp $ + $Id: mail.C,v 1.59 2002/03/27 13:12:29 paf Exp $ */ #include "pa_config_includes.h" @@ -370,7 +370,7 @@ static void sendmail(Request& r, const S const String *sendmail_command; #ifdef PA_FORCED_SENDMAIL - sendmail_command=PA_FORCED_SENDMAIL; + sendmail_command=new(pool) String(pool, PA_FORCED_SENDMAIL); #else const char *sendmailkey_cstr="sendmail"; if(mail_conf) { @@ -407,16 +407,23 @@ static void sendmail(Request& r, const S file_spec, "is not executable." #ifdef PA_FORCED_SENDMAIL + " Use configure key \"--with-sendmail=appropriate sendmail command\"" +#else " Set $"MAIN_CLASS_NAME":"MAIL_NAME".%s with appropriate sendmail command", sendmailkey_cstr -#else - " Use configure key --with-sendmail=\"appropriate sendmail command\"" #endif ); String in(pool, letter_cstr); String out(pool); String err(pool); - int exit_status=pa_exec(*file_spec, + int exit_status=pa_exec( + // forced_allow +#ifdef PA_FORCED_SENDMAIL + true +#else + false +#endif + , *file_spec, 0/*default env*/, &argv, in, out, err);