VerySimple Dev Blog

Languages

Send an Email via SMTP with C#

For whatever reason the web is filled with outdated examples of sending email with C#. This an example using .NET 2.0
First, be sure to import the Mail libs at the top of your class:

using System.Net.Mail;

Then in your code where the email will be sent:

MailMessage msg = new MailMessage();
msg.From = new MailAddress("from@address.com");
msg.To.Add(new MailAddress("to@address.com"));
msg.Subject = [...]

Read the rest

Introducing Phreeze PHP Framework

We are proud to announce the release of Phreeze Framework for PHP.  Phreeze is an open source framework that allows PHP developers to generate a working web application in just a few clicks.  The generated application includes ExtJS DataGrids with AJAX pagination and sorting and server-side validation implemented, and a forms with server-side input validation.
The [...]

Read the rest

NHibernate.MappingException: Unknown entity class

The dreaded “NHibernate.MappingException: Unknown entity class” exception thrown by NHibernate in your .NET web application indicates that the class you are trying to map in your .hbm.xml file cannot be located for some reason.
The first thing to check is to right-click on each of your .hbm.xml files and make sure the Build Action property is [...]

Read the rest

older posts :: newer posts