public ActionResult Apply(string id) { try { var jobId = int.Parse(id); var mailTO = JobLogic.GetCompanyEmail(jobId); var emailBody = "<h3>TRAILSから応募者がきました</h3>"; var url = "http://" + HttpContext.Request.Url.Authority + "/User/Profile/" + LoginInfo.Id; emailBody += "<p>応募者の情報はこちら:<a href=\"" + url + "\">" + url + "</a></p>"; emailBody += "<p>直接応募者に返事お願いします。</p>"; var result = SystemLogic.SendMail(Settigns.SMTP, Settigns.MailForm, mailTO, "TRAILSから応募者がきました", emailBody); if (result) { return(Json(new IsSuccessResult())); } } catch { } return(Json(new IsSuccessResult("false"))); }