A group of 20 Republican attorneys general warned CVS and Walgreens in a letter Wednesday that they could face legal consequences if they sell abortion pills by mail in their states.

The letter, from Missouri Attorney General Andrew Bailey, said selling the pills would violate abortion laws in the state. It was cosigned by attorneys general in Alabama, Alaska, Arkansas, Florida, Georgia, Indiana, Iowa, Kentucky, Louisiana, Mississippi, Montana, North Dakota, Ohio, Oklahoma, South Carolina, South Dakota, Texas, Utah, and West Virginia.

FDA ruling allows pharmacies to offer abortion pill

Last month, the FDA ruled retail pharmacies could get certified to dispense the abortion pill mifepristone and agree to accept prescriptions from certified providers.

CVS and Walgreens have previously said they intend to provide the drug in states where it is legal to do so.

Walgreens is working to become eligible to dispense mifepristone through an FDA-mandated certification process that requires pharmacies to meet standards in shipping, tracking and confidentially storing drug-prescribing records, Fraser Engerman, a Walgreens spokesperson, said in a statement.

“We fully understand that we may not be able to dispense Mifepristone in all locations if we are certified under the program,” Engerman said.

WHAT TO KNOW ABOUT ABORTION PILLS:Medication abortion may be the next focal point in the fight over abortion access

What legal action could be taken against pharmacies?

Bailey didn’t specify what legal action he would take.