The exact cause of erythema multiforme is unknown, but studies show that erythema multiforme can be triggered by: An infection (mycoplasma pneumoniae or herpes simplex virus). A medication.