using System;
using System.IO;
using EllieMae.Encompass.Client;
using EllieMae.Encompass.BusinessObjects;
using EllieMae.Encompass.Query;
using EllieMae.Encompass.BusinessObjects.Contacts;
class ContactManager
{
public static void Main(string[] args)
{
// Open the session to the remote server
Session session = new Session();
session.Start(“myserver”, “mary”, “maryspwd”);
// Get all of the Borrower Contacts
ContactList contacts = session.Contacts.GetAll(ContactType.Borrower);
// For each contact, add a new event to indicate the mailing was sent
for (int i = 0; i < contacts.Count; i++)
contacts[i].Events.Add(“Marketing mail sent”);
// End the session to gracefully disconnect from the server
session.End();
}
}