Base email template updated to properly handle secure http