--- parser3/src/classes/mail.C 2002/08/13 15:55:41 1.78 +++ parser3/src/classes/mail.C 2002/10/14 15:22:41 1.80 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_MAIL_C="$Date: 2002/08/13 15:55:41 $"; +static const char* IDENT_MAIL_C="$Date: 2002/10/14 15:22:41 $"; #include "pa_config_includes.h" @@ -400,7 +400,7 @@ static void _send(Request& r, const Stri const String *from, *to; const String& message=hash->get(*body_name)/*old format*/? message_hash_to_string(r, method_name, *hash, 0, &from, &to) : // old - static_cast(r.self)->message_hash_to_string(r, &method_name, hash, 0, &from, &to); // new + static_cast(r.get_self())->message_hash_to_string(r, &method_name, hash, 0, &from, &to); // new //r.write_pass_lang(message); sendmail(r, method_name, message, from, to); @@ -419,7 +419,7 @@ void MMail::configure_user(Request& r) { Pool& pool=r.pool(); // $MAIN:MAIL[$SMTP[mail.design.ru]] - if(Value *mail_element=r.main_class->get_element(mail_name, r.main_class, false)) + if(Value *mail_element=r.main_class.get_element(mail_name, &r.main_class, false)) if(Hash *mail_conf=mail_element->get_hash(0)) r.classes_conf.put(name(), mail_conf); else