Sending E-Mail with .Net and GMail

This was so easy I just had to share. // Create MailMessage Object MailMessage Msg = new MailMessage(email,”natthompson@natthompson.com”,subject,message); // Setup SmtpClient to point to GMail SMTP server SmtpClient client = new SmtpClient(“smtp.gmail.com”,587); // set your credentials client.Credentials = new System.Net.NetworkCredential(“<SOMEEMAILADDRESS>@gmail.com”, “XXXXXXX”); // turn on SSL client.EnableSsl = true; // send it! client.Send(Msg);

Modify Razor Layout for Mobile

Ok, so now I’m ready to begin modifying the SwappedBooks.com project for display on mobile devices.  This will involve the _Layout.cshtml file in the Views>Shared directory. When you open this file you will see code similar to the following: <meta charset=”utf-8″ /> <title>@ViewBag.Title</title> <link href=”@Url.Content(“~/Content/Site.css”)” rel=”stylesheet” type=”text/css” /> <script src=”@Url.Content(“~/Scripts/jquery-1.8.1.min.js”)” type=”text/javascript”></script> First add two meta[…]

How to Blend jQuery Mobile and .Net MVC

I’ve got an inkling that jQuery and .Net MVC together can produce some very powerful mobile web experiences.  So I’m setting up a Greenfield project at SwappedBooks.com.  The intent of the project is to build a site capable of running across multiple mobile devices and delivering a true e-commerce experience to users. Here, I’ll be[…]

Fridays Cooking With SPAM: WordPress Plugin Akismet

If you read blogs with any frequency then you’ve seen it. Comment SPAM. This nasty trend is all the rave among modern day snake oil salesmen peddling everything from two hour weight loss to cheap drugs from Canada. It’s everywhere and if you are running a WordPress based website it’s only a matter of time[…]

Stop Building Ugly Web Sites, Read “CSS: The Missing Manual”

Let’s face it. There are PLENTY of ugly websites out on the Internet today. Don’t add to the mess! You can build an appealing web site that is maintainable. By learning CSS you can improve your website designs and ease your maintenance efforts. CSS is a deep topic that requires some focused effort to understand and put to use. One of the best resources I have found to assist you in this effort is CSS: The Missing Manual.


[…]