Email template with updated php variables