outlook signature using delphi

Posted on 2012-08-23
Last Modified: 2012-09-06
Hi, I'm trying to send an email in delphi using outlook.    What I need is for the outlook mail window to popup with my text as the body plus the user's signature.

Currently, all is working except that I can't modify the htmlbody once I'm getting the signature via getinspector.   I can't even get the signature content without outlook getting a confirmation from the user.

I know I'm close to the solution but I don't know where to go from here.   I have tried modifying the signature via wordapp but still the outlook confirmation pops up.

    Outlook := GetActiveOleObject('Outlook.Application');
    Outlook := CreateOleObject('Outlook.Application');
  vMailItem := Outlook.CreateItem(olMailItem);
  vMailItem.htmlbody := 'My html body' + vMailItem.htmlbody; := Edit2.text;
  vMailItem.Subject := 'test email';
Question by:Buropro-Citation
    LVL 9

    Expert Comment

    May be automatically close popup window would be easy.

    Author Comment

    I'm not sure how to close the popup window automatically, would I see a popup window flashing?

    Also, can anyone tell me how to modify the signature using wordapp and then transfert the modified signature back to outlook?
    LVL 9

    Accepted Solution

    Yes, may be flashing. It just alternative way, if no other found.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Suggested Solutions

    Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
    In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now