Right, I've tried again with two new pages and the original email template (because it took ages to create and don't want to have to do it again).
zzz.php is the trigger email page (a user needs to be signed in to populate the recordset which is filtered on SecurityAssist_UserID). This has an update behaviour (which works) and error reporting switched on and produces this error:
Notice: Undefined variable: conn_mrs in /home/blah/blah/email-your-details.php on line 5
Fatal error: Uncaught Error: Call to a member function query() on null in /home/blah/blah/webassist/mysqli/rsobj.php:195 Stack trace: #0 /home/blah/blah/email-your-details.php(8): WA_MySQLi_RS->execute() #1 /home/blah/blah/webassist/email/WA_Email.php(306): require('/home/hp3-linc4...') #2 /home/blah/blah/webassist/email/WA_Email.php(465): WA_Email->getFromPage('email-your-deta...') #3 /home/blah/blah/zzz.php(42): WA_Email->send(0) #4 {main} thrown in /home/blah/blah/webassist/mysqli/rsobj.php on line 195
zzzz.php has the session dump in it to print the contents of the email being sent to screen, but it's not getting to this page because the send email page is erroring.
email-your-details.php is attached again, but I don't think there is an issue with this page either because if I am signed in as a user and manually type this page address in, it loads with the correct data.
So my assumption is that the issue lies with the trigger page (zzz.php), but I have no idea what it could be!
Any help would be greatly appreciated.
Thanks.