use swig for mailers