I also agree with Vic, Eddie, Carl, and Todd. I doubt that it is the Alternator.
Probably more likely a loose exhaust pipe or hanger, heat shield, or some other accessory that is loose...perhaps some linkage or the belt tensioner. Often when you put the vehicle in gear the RPM drops a bit and that can cause a bit of vibration that makes something loose to rattle. Press on the brake and give it a little gas and see if the rattle goes away with higher RPM. Exhaust pipes can rattle at certain RPMs that is at a certain vibration frequency that comes and goes with engine RPM changes.
...Rich