public ActionResult send(send send) { string mail = (string)TempData["m"]; int i = (int)Session["i"]; SmtpClient smtpClient = new SmtpClient(); System.Net.Mail.MailMessage m = new System.Net.Mail.MailMessage( "*****@*****.**", // From mail, // To "Message from PakSell", // Subject "Name Of the Sender is " + send.name + " Email of the sender is : " + send.e_mail + " Message: " + send.description); // Body smtpClient.Send(m); return(RedirectToAction("/Details/", new { id = i })); }
//YeuThich yeuthich; public MainWindow() { InitializeComponent(); foreach (var x in vmd.List) { st.Children.Add(new TextBlock() { Text = x.TheLoai, FontSize = 30, Foreground = new SolidColorBrush(Colors.White), Margin = new Thickness(30) }); st.Children.Add(new VideoAppearance(this) { List = x.Videos }); } Sender = new send(GetVieo); videoplay = new VideoPlay(); filminfo = new FilmInfo(); SenderYT = new sendYT(GetYT); }
public ActionResult contactUs(send send) { if (ModelState.IsValid) { SmtpClient smtpClient = new SmtpClient(); System.Net.Mail.MailMessage m = new System.Net.Mail.MailMessage( "*****@*****.**", // From "*****@*****.**", // To "Message from PakSell", // Subject "Name Of the Sender is " + send.name + " Email of the sender is : " + send.e_mail + " Message: " + send.description); // Body smtpClient.Send(m); return(RedirectToAction("/rules")); } return(View()); }
public static void sendtoserver(List <program> tosend) { List <send> array = new List <send>(); foreach (program program in tosend) { send snd = new send(); snd.key = program.regkey; snd.name = program.name; array.Add(snd); } string URL = "http://uninstaller.pryx.net/insert.php"; WebClient webClient = new WebClient(); string json = new JavaScriptSerializer().Serialize(new { array }); NameValueCollection post = new NameValueCollection(); post["json"] = json; webClient.UploadValues(URL, "POST", post); webClient.Dispose(); }