Use method to return email subject and templates #6373

Also, try twice to generate gift card report as sometimes unoconv
fails to convert to PDF