Sometimes the Ship To Name is different than the person who buys the product.
Thus, the email confirmation will have the recipient's name instead of the buyer's.
Perhaps you need to enlarge your database to have a "Bill to" and "Ship To" name, addresses.