Gravar-mail: Estimation of multiple transmission rates for epidemics in heterogeneous populations