Example Title |
Copy Code
|
---|---|
/* * How to call: MailADefect("darcy@pemberly.co.uk", "darcy@pemberly.co.uk", "hello", "World"); */ private bool MailADefect(String mailTo, String mailCC, String mailSubject, String mailComment) { try { BugFactory bugFact; Bug theBug; List bugList; bugFact = (BugFactory)tdConnection.BugFactory; bugList = bugFact.NewList(""); Debug.Print(bugList.Count.ToString()); theBug = bugFact[1]; theBug.Mail(mailTo, mailCC, (int)TDMAIL_FLAGS.TDMAIL_TEXT, mailSubject, mailComment); return true; } catch (Exception) { return false; } } |