?
Solved

outlook signature using delphi

Posted on 2012-08-23
3
Medium Priority
?
1,478 Views
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.

  try
    Outlook := GetActiveOleObject('Outlook.Application');
  except
    Outlook := CreateOleObject('Outlook.Application');
  end;
  vMailItem := Outlook.CreateItem(olMailItem);
  vMailItem.GetInspector;
  vMailItem.htmlbody := 'My html body' + vMailItem.htmlbody;
  vMailItem.to := Edit2.text;
  vMailItem.Subject := 'test email';
  vMailItem.display;
0
Comment
Question by:Buropro-Citation
  • 2
3 Comments
 
LVL 9

Expert Comment

by:ITugay
ID: 38353209
May be automatically close popup window would be easy.
0
 

Author Comment

by:Buropro-Citation
ID: 38356073
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?
0
 
LVL 9

Accepted Solution

by:
ITugay earned 1000 total points
ID: 38357293
Yes, may be flashing. It just alternative way, if no other found.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
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…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

850 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