Yes!! That works.
require_once MGR_DIR.'/includes/controls/class.phpmailer.php';
Thanks Breezer and Jako.
(sorry for the delay in reply, I was having trouble logging into these forums recently)
I can now load the page without error - and I can login which is great.
But for some reason now the logout link (<a href="[~[*id*]~]&service=logout">Logout</a>) in the success message does not work so its impossible to logout without closing the browser.
I searched the "webloginpe" snippet folder but the only other hard coded link to the manager folder that I can find is on line 1830 of the same webloginpe.class.php file referring to captcha but we don't use that in the login form so that shouldn't matter.
I note that logout also does not work in 1.0.12 when using the standard manager call in webloginPE with an unchanged manager url:
require_once 'manager/includes/controls/class.phpmailer.php';
Maybe something has changed between 1.0.10 and 1.0.12 that would affect the logging out?
Another quirk I have found: the phx call in the header that shows the logout message also no longer shows either: [+phx:webuserloggedin:then=`{{wlpe login hdr}}`:else=``+]. Not sure why that would be. My PHx version is 2.2.0.
Any ideas of the logout and phx call issues?
Thanks for all your help.