Guest User

Untitled

a guest
Mar 24th, 2018
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. string to = "user@example.com";
  2. string from = "user@example.com";
  3. string title = "Test";
  4. string body = "Test Email";
  5.  
  6. Type t1 = Type.GetType("System.Net.Mail.MailMessage");
  7. Object test = Activator.CreateInstance(t1, new object[] { to, from, title, body });
Add Comment
Please, Sign In to add comment