|
|
Question : Sending Email With Digital Signature using VBA/Automation
|
|
I am writing code to send an email from Access 2002 using Outlook 2002 as an automation server. I want to send a digital signature along with the email. If I display the email before sending, no problem. But without displaying the email, the digital signature is missing.
Is there a VBA/Automation way to send an email with a signature and without displaying the email first?
Thanks, Slator
|
Answer : Sending Email With Digital Signature using VBA/Automation
|
|
very similar to yours but try like this:
Private Sub Command1_Click() Dim oOutlook As Outlook.Application Dim olMail As Outlook.MailItem Set oOutlook = New Outlook.Application Dim olNs As Outlook.NameSpace Set olNs = oOutlook.GetNamespace("MAPI") olNs.Logon Set olMail = oOutlook.CreateItem(olMailItem) ' This line is required in order for the autosig to be available Set oInspector = olMail.GetInspector olMail.To = "Travis Smith" olMail.Subject = "About our meeting..." olMail.Send End Sub
|
|
|
|