Thanks Ray
I think I have followed your instructions but testing on localhost I get these errors
Notice: Undefined variable: conn1_i in C:\xampp\htdocs\boatsforsalenow_mysqli2\webassist\email\waue_boat_insert_images_Free_1_body_3.php on line 4
Fatal error: Call to a member function query() on null in C:\xampp\htdocs\boatsforsalenow_mysqli2\webassist\mysqli\rsobj.php on line 196
I am attaching some screen shots and files which may help.