Use a different email Client.

pekajo

Registered User.
Local time
Today, 14:17
Joined
Jul 25, 2011
Messages
136
Hi, I have two email clients Thunderbird (default/home) and Outlook (Work) and use the following to email VBA

With olMail
.To = CEmail
.Subject = vs1
.Body = mm
.Attachments.Add "G:\DATABASE\20200924\Login Instructions.pdf"
.Display
End With

However it sends via Thunderbird, can I set it to Outlook as I do not want to change the default everytime.
Thanks for any help.
Peter
 
Please post entire code. The context you omitted is the most important part.
 
What type of object is olMail? How did you set it?
 

Users who are viewing this thread

Back
Top Bottom