// // GET: /admin/ public ActionResult Index() { MyDynamicEngine mydynamic = new MyDynamicEngine(); string mytoemail = mydynamic.getValue("toemail"); string myfromemail = mydynamic.getValue("fromemail"); string mypassword = mydynamic.getValue("password"); ViewBag.mytoemail = mytoemail; ViewBag.myfromemail = myfromemail; ViewBag.mypassword = mypassword; return(View()); }
public async Task <ActionResult> testSendEmailToUser() { MyEngines.GMailer gmail = new MyEngines.GMailer(); MyDynamicEngine mydynamic = new MyDynamicEngine(); string mytoemail = mydynamic.getValue("toemail"); UpdateOrderToUserModel userintfo1 = new UpdateOrderToUserModel(); userintfo1.hoten = "Họ tên người dùng"; userintfo1.email = mytoemail; userintfo1.iddonhang = "IDTest"; userintfo1.tinhtrang = "Mới cập nhật"; await gmail.SendWithCreateOrderToUserTemplate("Test Email", userintfo1); return(RedirectToAction("Index")); }