Template based email creation with dynamic contents