Can MySqli record be used on an page that Universal Emails sends after submitting the form?

Can MySqli record be used on an page that Universal Emails sends after submitting the form?

I am trying to use a MySqli recordset on a page that gets email to a user after submitting the form. When I used the DW server behavior, the form is submitted and an the email page is sent to the user. When I try using the MySqli record I get the following errors:

Notice: Undefined variable: dbConnectSQLi in /services/webpages/b/u/buildersfence.com/public/webassist/email/templates/activateAccount.php on line 21

Fatal error: Call to a member function Prepare() on a non-object in /services/webpages/b/u/buildersfence.com/public/webassist/mysqli/rsobj.php on line 166