The most common form of treatment is trimethoprim/sulfamethoxazole (TMP/SMX), which is also known as co-trimoxazole and by several different brand names, including Bactrim, Septra, and Cotrim. This medicine is given by mouth or through a vein for 3 weeks. TMP/SMX can cause side effects such as rash and fever.