Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

outlook problem 1

Status
Not open for further replies.

fluppe689

Programmer
Jul 11, 2008
75
BE
hello experts

i have a program that send emails.
so far no problem
the client i work for want to send the email with his own signature.
is this possible to integrate this into the body of the email
vfp9 sp1

the client works with microsoft exchange
 
You need to call the display() method of an outlook mail object, only then a signature is added.

So you typically do this:

Code:
#Define olMailItem 0

Try
   oOutlook = GetObject(,"Outlook.Application")
Catch
   oOutlook = CreateObject("Outlook.Application")
Endtry
oMail = oOutlook.CreateItem(olMailItem)
oMail.To = "someone@somewhere.com"
oMail.Display() && adds predefined signature besides displaying
oMail.Body = "your text here"+oMail.Body
oMail.Send()

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top