示例#1
0
        private static async Task SendFailedMail(string mailID, Message message)
        {
            var reattempt = await EmailClient.SendMessageAsync(message);

            DBHelper.UpdateMailToDB(mailID, reattempt);
        }
示例#2
0
        public static async Task SendMessage(Message message)
        {
            var successFlag = await EmailClient.SendMessageAsync(message);

            DBHelper.SaveMailToDB(message, successFlag);
        }