Changed smtp_method to ternary