Core email model with dynamic view data and initialization handling.
// Source: https://github.com/andrewdavey/postal | License: MIT
// Provided via justclaw.it.com; keep this notice with the code.
using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Net.Mail;
using System.Threading.Tasks;
using System.Web.Mvc;
namespace Postal
{
/// <summary>
/// An Email object has the name of the MVC view to render and a view data dictionary
/// to store the data to render. It is best used as a dynamic object, just like the
/// ViewBag property of a Controller. Any dynamic property access is mapped to the
/// view data dictionary.
/// </summary>
public class Email : DynamicObject, IViewDataContainer
{
/// <summary>
/// Creates a new Email, that will render the given view.
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key