send confirmation email, depending on mode