Results 1 to 3 of 3
  1. #1
    Star Lounger
    Join Date
    Feb 2001
    Location
    San Francisco, California, USA
    Posts
    67
    Thanks
    0
    Thanked 1 Time in 1 Post

    Deleting autosignature in plain text email (Outlook 2002)

    Does anyone know how to programmatically delete an autosignature from an Outlook 2002 plain text email?

    Changing the Body property of the mail item doesn't do it. E.g., if the autosignature is the only thing in the email, and I use something like myEmailItem.Body = "", nothing happens - the autosignature remains. If I try to replace the autosignature (myEmailItem.Body = "My new text"), the email then shows my new text - under the darned autosignature!

    I need to delete autosignatures programmatically so I can position our company disclaimer (programmatically) correctly in plain text emails. I know, I know, it would be better to use HTML! but unfortunately, some of the emails we must respond to arrive in plain text format. And some of our employees keep plain text as their default email format.

    So any suggestions would be greatly appreciated. Thanks in advance.

  2. #2
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Deleting autosignature in plain text email (Outlook 2002)

    Can you add an empty signature and use that for this purpose? The signature doesn't have to actually contain anything but perhaps a space. <img src=/S/shrug.gif border=0 alt=shrug width=39 height=15>
    Charlotte

  3. #3
    Star Lounger
    Join Date
    Feb 2001
    Location
    San Francisco, California, USA
    Posts
    67
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Deleting autosignature in plain text email (Outlook 2002)

    Afraid not. My addin inserts a disclaimer into the email body. Many of our users include autosignatures in their emails. When the email is a reply, and contains both an autosignature and the original message, I need to correctly place the disclaimer in the email body. My approach was to copy the email body into a string variable, manipulate the string to include the disclaimer in the correct position, then to replace the email body with the resulting string. Unfortunately, when I replace the email body with the resulting string, the original autosignature doesn't get overwritten. As a result, it shows up twice: the original autosignature plus the copy of it in my string...

    A knotty problem, for sure!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •