This is a simplified version of a vbs script to create a mail
The code works perfect but the default signature is not added to the mail.
How can I add the default signature to the mail?
Thanks.
Code:
Sub createOutlookEmail()
Dim appOutlook
Set appOutlook = Wscript.CreateObject("Outlook.Application")
Set objMail = appOutlook.CreateItem(0)
With objMail
.To="Some mail address"
.CC="Some mail address"
.BCC="Some mail address"
.Subject="Test"
.BodyFormat=2
.Body="Some text"
.Attachments.Add "Some file"
.Display
End With
Set objMail = Nothing
Set appOutlook = Nothing
End Sub
' Run the procedure
Call createOutlookEmail()
The code works perfect but the default signature is not added to the mail.
How can I add the default signature to the mail?
Thanks.
Last edited: