Display the default signature in a new Outlook mail message

I have a VB6 program that generates an Outlook email, the problem is it does not contain the user's signature? Any ideas how to ensure that it is part of the email

rocky050371Asked:
Who is Participating?
 
Chris BottomleyConnect With a Mentor Software Quality Lead EngineerCommented:
I haven't heard of the getinspector returning the signature so just in case the normal method with which I am familiar is getboiler!

As demonstrated by Ron DeBruin:

http://www.rondebruin.nl/mail/folder3/signature.htm

Chris
0
 
DhaestCommented:
The GetInspector is what adds the default signature

http://www.dreamincode.net/forums/topic/31537-use-of-default-signature-from-outlook-olmail/
Dim oOutlook As Outlook.Application  
02 Dim olMail As Outlook.MailItem  
03 Dim oAddSig As Outlook.Inspector  
04    
05 Set oOutlook = CreateObject("Outlook.Application")  
06 Set olMail = olApp.CreateItem(olMailItem)  
07    
08 Set oOutlook = olMail.GetInspector  
09    
10 With olMail  
11       Call .Recipients.Add("h***@there.com")  
12       .Subject = "Blah blah blah" 
13       .Body = "Email test message 1" 
14       Call .Send  
15 End With  
16 Set oOutlook = Nothing 

Open in new window

0
 
rocky050371Author Commented:
The GetInspector method does not add the signature
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

 
Chris BottomleySoftware Quality Lead EngineerCommented:
It will certainly work by importing it after the fashion of the supplied link then.

Chris
0
 
rocky050371Author Commented:
I implemented Ron's code, the problem I have is that the images are missing,
0
 
Chris BottomleySoftware Quality Lead EngineerCommented:
I honestly cannot recall if I ever tried it with graphics so are you using the HTML file import ... and is the email HTML, for example?

Chris
0
 
rocky050371Author Commented:
Yes I set the objMail.HTMLBody but it leaves out the images
0
 
Chris BottomleySoftware Quality Lead EngineerCommented:
I need to try and play with this ... so I may be a while - and perhaps someone knowing more will be able answer soon.

Chris
0
 
rocky050371Author Commented:
Hi Chris,

I managed to open the signature replace the image path with the full path and it worked fine. Thanks for you help
0
 
Chris BottomleySoftware Quality Lead EngineerCommented:
Ah

I would never have seen that as your problem as I was using a direct path already ... well done.

Chris
0
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.