outlook signature using delphi

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;
  vMailItem.to := Edit2.text;
  vMailItem.Subject := 'test email';
Who is Participating?
ITugayConnect With a Mentor Commented:
Yes, may be flashing. It just alternative way, if no other found.
May be automatically close popup window would be easy.
Buropro-CitationAuthor Commented:
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?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.