C# code test


private void CreateSendEmail(List<Message> messages,string styles)
{
    if (messages.Count == 0) return;
    Console.WriteLine("Writing Email...");
    string title = string.Format("{0}",messages[0].Source.Substring(0,1));
    string body = styles;
    foreach (var message in messages)
    {
        title += ( " " + message.Keyword );
        body += ( message.Html+"<br/>" );
    }
    Console.WriteLine("Sending Email...");
    Email.Send(title, body);
    Console.WriteLine("Email successfully sent");
}

Comments (0)

Skip to main content