@ika palad , you could try the following code to use c# to reply an email.
private void button1_Click(object sender, EventArgs e)
{
Outlook.Application app =new Outlook.Application();
Outlook.MailItemClass emi = (Outlook.MailItemClass)replyMail;
emi.ItemEvents_10_Event_Reply += Emi_ItemEvents_10_Event_Reply;
emi.ItemEvents_Event_Reply += Emi_ItemEvents_Event_Reply;
MessageBox.Show("success");
}
private void Emi_ItemEvents_Event_Reply(object Response, ref bool Cancel)
{
Outlook.MailItem mail = Response as Outlook.MailItem;
Console.WriteLine(mail.Body);
Console.WriteLine(mail.Subject);
Console.WriteLine(mail.Sender);
Console.WriteLine(mail.To);
Console.WriteLine(mail.CC);
Console.WriteLine(mail.Attachments.Count);
}
Please note that we need to use MailItemClass.ItemEvents_Event_Reply Event.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.