Let’s say you send a model called “MyModel” from controller to view. In Controller: … var result = new MyModel() { Id = 1, Name = “Ercan”, FavoriteTeam = “Galatasaray”, FavoriteGame = “Half Life Series” } return View(result); … and now we will send this model which comes with result to Javascript via setName function: […]
Tag: send
How to set delivery format while using SMTP client in C#?
SmtpClient smtpClient = new SmtpClient(); smtpClient.DeliveryFormat = SmtpDeliveryFormat.International; You must note that it is only available with .NET Framework 4.5 or later.
How to send e-mail in HTML View with wp_mail()
$to = ‘a1@b.com, a2@b.com, a3@b.com’; $subject = ‘The Subject of your e-mail’; $message = ‘The Content of your e-mail’; $headers = array(‘Content-Type: text/html; charset=UTF-8’); wp_mail( $to, $subject, $message, $headers );