Not entirely sure of the exact FAA regulations but i'm pretty sure inflight cockpit visits have been prohibited since 9/11. A letter won't make any difference unfortunately. If you want to see the cockpit, if you ask the cabin crew before landing whether you can have a look when you've landed I am sure they will say yes.