Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.10 KB | None | 0 0
  1. private static Dictionary<Group, System.Net.Mail.MailAddress[]> emailLookup = new Dictionary<Group, System.Net.Mail.MailAddress[]> {
  2.         { Group.Advertisers, new System.Net.Mail.MailAddress[] { new System.Net.Mail.MailAddress("michael@interclick.com"), new System.Net.Mail.MailAddress("interclick.marketing@interclick.com") } },
  3.         { Group.Business, new System.Net.Mail.MailAddress[] { new System.Net.Mail.MailAddress("michael@interclick.com"), new System.Net.Mail.MailAddress("interclick.marketing@interclick.com") } },
  4.         { Group.Publishers, new System.Net.Mail.MailAddress[] { new System.Net.Mail.MailAddress("publishers@interclick.com")  } },
  5.         { Group.Technical, new System.Net.Mail.MailAddress[] { new System.Net.Mail.MailAddress("ictechsupport@interclick.com") } },
  6.         { Group.Other, new System.Net.Mail.MailAddress[] { new System.Net.Mail.MailAddress("interclick.marketing@interclick.com") } },
  7.     };
  8.  
  9. public void btnSubmit_Click(object sender, EventArgs e)
  10.     {
  11. System.Net.Mail.MailMessage mailMsg = new System.Net.Mail.MailMessage();
  12. mailMsg.To.CopyTo(emailLookup[Group.Other], 0)
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement