public virtual MvcMailMessage ContactVisiteurConfirmation(ContacterViewModel contact) { ViewBag.Message = contact.message; ViewBag.Email = contact.Email; ViewBag.Telephone = contact.telephone; ViewBag.annonceId = contact.idad; ViewBag.annonceCode = contact.ad_code; ViewBag.adTitle = contact.ad_title; return(Populate(x => { x.Subject = "Toutokazz- message de confirmation"; x.ViewName = "ContactVisiteurConfirmation"; x.To.Add("*****@*****.**"); x.To.Add(contact.Email); x.Body = contact.message; })); }
public virtual MvcMailMessage ContactAnnonceur(ContacterViewModel contact) { ViewBag.Message = contact.message; ViewBag.Email = contact.Email; ViewBag.Telephone = contact.telephone; ViewBag.annonceId = contact.idad; ViewBag.adTitle = contact.ad_title; ViewBag.annonceCode = contact.ad_code; return(Populate(x => { x.Subject = "Toutokazz- Message concernant votre annonce"; x.ViewName = "ContactAnnonceur"; x.To.Add("*****@*****.**"); x.To.Add(contact.Emailaccount); x.Body = contact.message; })); }