Use a different email Client. (1 Viewer)

pekajo

Registered User.
Local time
Tomorrow, 00:58
Joined
Jul 25, 2011
Messages
133
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
 

Isaac

Lifelong Learner
Local time
Today, 07:58
Joined
Mar 14, 2017
Messages
8,774
Please post entire code. The context you omitted is the most important part.
 

theDBguy

I’m here to help
Staff member
Local time
Today, 07:58
Joined
Oct 29, 2018
Messages
21,449
What type of object is olMail? How did you set it?
 

Users who are viewing this thread

Top Bottom