Hi
Does Thunderbird have a macro/VBA type language that would allow it to be controlled from MS Access? I.e. is it possible to generate multiple emails from MS Access through Thunderbird in the same way as can be done through Outlook?
David
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
Home » Forums » AskWoody support » Questions: Browsers and desktop software » Other browsers » Access and Thunderbird (All)
Yes
I think you could use something like this:
Public Function fSendThunderbird(strTo As String, strSubject As String, strBody As String)
‘This function can be used to send an e-mail from Mozilla Thunderbird.
‘The syntax for calling Thunderbird from a command line (DOS prompt) is:
‘
‘thunderbird -compose “mailto:somebody@somewhere?cc=address@provider&subject=hi&body=something”
‘
Dim strCommand As String
strCommand = “C:Program FilesMozilla Thunderbirdthunderbird”
strCommand = strCommand & ” -compose ” & Chr$(34) & “mailto:” & strTo & “?”
strCommand = strCommand & “subject=” & Chr$(34) & strSubject & Chr$(34) & “&”
strCommand = strCommand & “body=” & Chr$(34) & strBody & Chr$(34)
Call Shell(strCommand, vbNormalFocus)
End Function
I won’t claim this for my own but can be found here: http://forums.mozillazine.org/viewtopic.php?t=399230&%5B/url%5D
For simple e-mails, you can use DoCmd.SendObject in Access VBA, e.g.
DoCmd.SendObject To:=”you@somewhere.com”, Subject:=”Test”, Message:=”Hello World”, EditMessage:=True
This will use the user’s default e-mail application, there is no need to specify the name and path of the application.
Using Automation to control Outlook from Access offers more features, such as adding attachments, setting the mail’s priority and specifying HTML for the body of the e-mail. I think David wanted to know whether something similar is possible for Thunderbird.
Thanks guys. I think the answer is stick with Outlook for anything other than very simple emails..
I had hoped to get away with using Outlook for work and Thunderbird for the 2 associations I maintain databases for (using 2 Thunderbird profiles). It looks like the only way forward is to create 3 Windows/Exchange profiles with Outlook in each. Messy having to log out and login to change.
David
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.
Notifications