Example #1
0
        public static void SendMail(string title, string desc, string contactInfo)
        {
            if (title.IsInv())
            {
                return;
            }
            string realDesc = getDesc(title, desc, contactInfo);

            CMail.Send(title, realDesc, null);
        }
Example #2
0
        public static void SendError(string desc, string contactInfo, bool isSendAchieve = false)
        {
            string realDesc = getDesc("错误信息", desc, contactInfo);

            //简体中文地区自动发送邮件
            if (BaseLanguageMgr.LanguageType == LanguageType.Chinese)
            {
                string filePath = null;
                if (isSendAchieve)
                {
                    if (BaseGlobal.BattleMgr.IsInBattle)
                    {
                        BaseGlobal.DBMgr.SaveTemp();
                        filePath = BaseGlobal.DBMgr.GetTempSavePath();
                    }
                }
                CMail.Send(IMUIErrorCatcher.GetTitle(), realDesc, filePath);
            }
        }