I dont want to instantiate that member function because i'm not sending that particular email;
so basically
register.php => uses $mail['new_registration']
view_pm.php => uses $mail['new_reply']
I keep all site based language its on own file, database responses in it own file and with mail language in its own file.
but because i'm accessing $mail['new_registration'] in the mail file, there are variables or member functions which aren't instantiated i.e that in the $mail['new_reply'] which causes the errors.
So instead of creating a;
register.mail file : which includes all $mail items to do with registration in that file
and;
pm.mail file : that will include all $mail items to do with that (new pm notification, new reply notification etc)
and so forth...
i wanted to know if there was a way around it.
so i could just do allmailitems.mail file which contains all mail items which is seeming like its not possible.