How can I send an autorespond email based on conditions