add debug option for mail setting