It's nice to meet you, John.
John isn't directly cognizant of your greeting, but I'm sure he would feel likewise.