A.Not only did I realize that I had forgotten to put a stamp on the letter but I posted it as well.
B.Scarcely had I posted the letter when I realized that I had forgotten to put on a stamp.
C.No sooner had I posted the letter than I forgot to put on a stamp.
D.Only before posting the letter did I realize that I had forgotten to put on a stamp.