What are some ways to get rid of mattresses/box springs?

I have two Sealy Posturepedic queen size mattresses, box springs, and frames. The beds are 10 years old but in excellent condition. If I can’t sell them, which charitable organizations pick up beds? Or, do the trash collectors pick them up? I live in an apartment complex and was told I can’t put them near the dumpsters.