Example #1
0
        public ActionResult PartnerIntentRegistration(PartnerIntent partnerModel)
        {
            if (!ModelState.IsValid) return View();

            var from = new MailAddress(partnerModel.Email);
            var to = new MailAddress("*****@*****.**");
            var sb = new StringBuilder();
            var msg = new MailMessage(@from, to)
            {
                Subject = "New Partner Intent registration from " + partnerModel.FullName,
                IsBodyHtml = false
            };

            // format Partner Intent Email
            sb.Append("Full name: " + partnerModel.FullName);
            sb.Append(Environment.NewLine);
            sb.Append("Email: " + partnerModel.Email);
            sb.Append(Environment.NewLine);
            sb.Append("Mailing address: " + partnerModel.MailingAddress);
            sb.Append(Environment.NewLine);
            sb.Append("City: " + partnerModel.City);
            sb.Append(Environment.NewLine);
            sb.Append("Country: " + partnerModel.Country);
            sb.Append(Environment.NewLine);
            sb.Append("Phone number: " + partnerModel.PhoneNumber);
            sb.Append(Environment.NewLine);
            sb.Append("Username: "******"~/Views/Partner/PartnerProgramIntentSent.cshtml");
            //}

            ViewBag.SelectedSubverse = string.Empty;
            return View("~/Views/Errors/Error.cshtml");
        }
Example #2
0
 public ActionResult PartnerIntentRegistration()
 {
     var model = new PartnerIntent {UserName = User.Identity.Name};
     return View(model);
 }