I am creating Transport Rule for Signature in Office 365 in my asp.net site. I am using Power shell command with c#. For new
emails it is working as expected. But whenever I got reply or forward the email the signature was appended at last of each email. How to restrict signature for those reply and forward emails. Here is the sample code.
var pipe1 = psRunSpace.CreatePipeline();
Command NewAddressList1 = new Command("New-TransportRule");
NewAddressList1.Parameters.Add((new CommandParameter("name", "MyRule")));
NewAddressList1.Parameters.Add((new CommandParameter("Enabled ", true)));
NewAddressList1.Parameters.Add((new CommandParameter("ApplyHtmlDisclaimerLocation", "Append")));
NewAddressList.Parameters.Add((new CommandParameter("Priority",0)));
NewAddressList1.Parameters.Add((new CommandParameter("ApplyHtmlDisclaimerText", "Hear i using Html String")));
pipe1.Commands.Add(NewAddressList1);
Collection<PSObject> NewAddressListResult1 = pipe1.Invoke();
pipe1.Dispose();