I'm sorry for your frustration. Whether the email works or not has nothing to do with the MySQLi code or insert. It has everything to do with the difference in the email code.
If you provide FTP information I can debug the first page and let you know why the email didn't send. It is hard to tell by just looking through the code, but if I'm able to investigate I'm sure I can figure it out.