CMA-3190 send opts param to template

Take custom host of email host is not set.