示例#1
0
 public void Add(string address, string displayName, MapiMailMessage.RecipientType recipientType)
 {
     this.Add(new Recipient(address, displayName, recipientType));
 }
示例#2
0
 private void sendFeedbackToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         MapiMailMessage message = new MapiMailMessage("WDS feedback", "Insert your text here please...", new MAPIResultDelegate(MAPIResult));
         message.Recipients.Add("[email protected] ");
         string currentDirectory = Directory.GetCurrentDirectory();
         try
         {
             string path = Path.Combine(Application.LocalUserAppDataPath, "actualWDSLog.rtf");
             File.WriteAllText(path, GlobalServices.LogContext);
             message.Files.Add(path);
         }
         catch (Exception exception)
         {
             MessageBox.Show(exception.Message, "Can't add attachment", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
         }
         message.ShowDialog();
         Directory.SetCurrentDirectory(currentDirectory);
     }
     catch (Exception exception2)
     {
         MessageBox.Show(exception2.Message, "Cannot send email", MessageBoxButtons.OK, MessageBoxIcon.Hand);
     }
 }
示例#3
0
 public void Add(string address, MapiMailMessage.RecipientType recipientType)
 {
     this.Add(new Recipient(address, recipientType));
 }