FedEx Corp. was indicted Thursday on charges of shipping illegal drugs to online pharmacies that ended up in the hands of dealers and addicts.

The indictment, brought by a federal grand jury in San Francisco, says FedEx has been shipping controlled substances and misbranded prescription drugs, such as Ambien and Diazepam, for illegal Internet pharmacies since 2000. FedEx continued the activities despite warnings from the Drug Enforcement Agency, the Food and Drug Administration and members of Congress in 2004.