How to reply all in outlook

hi ,
i need a solution like i have an outlook i need to reply all rather than sending an mail…
is there any method to use…?

There is no replyall activity,You need to use send outlook mail activity and You will have reply to list in its properties

hi @sreekanth ,
i finally managed to do with custom activity yet am able to to do reply all using my custom code which have developed…so here is the code

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Activities;
using System.ComponentModel;
using Microsoft.Office.Interop.Outlook;

namespace custom activities
{
public class ReplyAll_by_sanjay : CodeActivity
{

    [Category("Input")]
    [RequiredArgument ]
    public InArgument<string> Account { get; set; }

    [Category("Input")]
    [RequiredArgument]
    public InArgument<string> Folder { get; set; }

    [Category("Input")]
    [RequiredArgument]
    public InArgument<string> Body { get; set; }
    
    
    
    [Category("Input")]
    [RequiredArgument]
    public InArgument<string> Subject { get; set; }

    [Category("Input")]
    
    public InArgument<string> TO { get; set; }

    [Category("Input")]
   
    public InArgument<string> Attachment_path { get; set; }


    [Category("Output")]
    
    public OutArgument<Int32> Email_count { get; set; }

    [Category("Output")]


    public OutArgument<Boolean> Result { get; set; }


    protected override void Execute(CodeActivityContext context)
     {

      string acc= Account.Get(context);
      string fold= Folder.Get(context);
       string sub=Subject.Get(context);
       string bod=Body.Get(context);
        string t1= TO.Get(context);
       string path= @Attachment_path.Get(context);

         Microsoft.Office.Interop.Outlook._Application _app = new Application();
         Microsoft.Office.Interop.Outlook._NameSpace _ns = _app.GetNamespace("MAPI");
         Microsoft.Office.Interop.Outlook.MAPIFolder inbox = _ns.Folders[acc].Folders[fold];
        _ns.SendAndReceive(true);

        foreach (Microsoft.Office.Interop.Outlook.MailItem item in inbox.Items)
        {
            if (item.Subject.Equals(sub) || item.Subject.Equals("RE: "+sub))
            {
                Microsoft.Office.Interop.Outlook.MailItem item1 = item.ReplyAll();
                item1.Body = bod + Environment.NewLine + item1.Body;
                item1.To = t1;
                if (path.Length > 0)
                {
                    item1.Attachments.Add(path);
                    ((Microsoft.Office.Interop.Outlook._MailItem)item1).Send();
                    Result.Set(context, true);
                    break;
                }
                else
                {
                    ((Microsoft.Office.Interop.Outlook._MailItem)item1).Send();
                }

            }
            else
            {

                Result.Set(context, false);
            }
            
        
        
        }






        Email_count.Set(context, inbox.Items.Count);
       

     }
}

}

and find the nuget package which is running fine…
but the problem wat t i face t does not attached signatures from the previous mail body only the text
other than any image in the body it extracts.

repyallActivities.1.0.0.nupkg (6.4 KB)

so could you give me some solution how can i achieve this??
:slight_smile:

Refer this

this is only for outlook not for gmail? example?