Running outlook.exe with just a file path probably won't make it start a new email with that file attached. But what happens is entirely up to Outlook and not Opus; Opus just builds the command line you tell it to build and passes it to Outlook, and it's up to Outlook how it interprets that command line.
This is more a question about how to use Outlook than Opus, so I am far from an expert here, but I found this which appears to have some solutions:
I am not sure if any of them work with the Office 365 version of Outlook. By the sound of it, the command line interface for Outlook has changed a few times over the years.
Try those suggestions from a Command Prompt (without Opus involved at all, to keep things simple) to see if they work with your version of Outlook. If they do, we can help you turn them into an Opus button if needed.
Thanks, but it's a lot of try and error advice, isn't there any smart function in Opus to do that? Is it intentional that the user interface on my screenshot has the limitation that I have to remember all my contacts mail addresses?
Is this forum the only support in Opus or can I send support a support ticket?
Please try the three built-in options. That will only take a few seconds, and may work instantly.
Using the MAPI option is the one I would try first with Outlook. You can try that in less time than it takes to write a reply asking for a different answer. There's no point asking for help if you don't try the suggestions; that wastes both our times.
If that doesn't work, give the sentto option a quick try.
If none of the three options work, you'll need to find out how to tell your version of Outlook to do what you want via the command line. The Stackoverflow thread I linked above shows that it is possible, but the exact details vary with versions of Outlook. That becomes a question of how to use Outlook, not Opus. This is a forum for help with Opus, and not one where we have much expertise on Outlook.
This thread may also be of use, or at least shows what you want to do was possible in an older version of Outlook. (Unfortunately, it seems Outlook keeps changing how it works, so details may need modifying, as mentioned in the Stackoverflow thread I linked earlier):
This is the official tech support area for Opus. You're already here.
i of course tried all 3 build-in options when i setup smtp it dont work i get an error 503, which i cant find a solution to. mailto works but very very slow and opening windows not send to front - so not working well. Rest dont work - i cant find any solution to a setup string command for office365. The article you pointed to regarding address books says: "Note: this feature was removed from Outlook 2003 and above" so it is not possible to use the address book, i have to remember all my contacts mail adresses with the build-in smtp feature. Status: nothing seems to work
I don't know if this helps you, I found it on the Opus forums some time ago, so the credit goes to the original author; I just tweaked it to my use. Using the desktop version of Outlook it will attach the selected files to a newly created email. Outlook most run in the background for this to function. I use it as a toolbar button to quickly send files when needed.
Function OnClick(ByRef clickData)
Dim cmd, lister, tab, selItem, folderEnum, folderItem
Set cmd = clickData.func.command
cmd.deselect = false ' Prevent automatic deselection
Dim OutApp, oNameSpace, oInbox, oEmailItem, olMailItem
Dim a, oAttachments, subjectStr, olFormatHTML
Dim objFSO,strSigFilePath, objSignatureFile, strBuffer, strText
olMailItem = 0
olFormatHTML = 2
Set OutApp = CreateObject("Outlook.Application") 'opens Outlook
Set oEmailItem = OutApp.CreateItem(olMailItem) 'opens new email
Const LineBreak = "<br>"
DOpus.Output "Selected items in " & clickData.func.sourcetab.path & ":"
If clickData.func.sourcetab.selected.count = 0 Then
DOpus.Output " (none)"
For Each selItem in clickData.func.sourcetab.selected
If (selItem.is_dir) Then
DOpus.Output " (d) " & selItem.RealPath
DOpus.Output " (f) " & selItem.RealPath
' Set oAttachments = oEmailItem.Attachments.Add(selItem.RealPath)
Set oAttachments = oEmailItem.Attachments.Add(CStr(selItem.RealPath))
subjectStr = subjectStr & Right(selItem.RealPath,Len(selItem.RealPath)-(InStrRev(selItem.RealPath,"\"))) & ", "
strText = strText & LineBreak & "- " & Right(selItem.RealPath,Len(selItem.RealPath)-(InStrRev(selItem.RealPath,"\")))
Set objFSO = CreateObject("Scripting.FileSystemObject")
'Change your username and the Outlook signature file name
strSigFilePath = "C:\Users\Val\AppData\Roaming\Microsoft\Signatures\"
Set objSignatureFile = objFSO.OpenTextFile(strSigFilePath & "Infusionsoft.htm")
'Set objSignatureFile = objFSO.OpenTextFile(strSigFilePath & "Core.htm")
strBuffer = objSignatureFile.ReadAll
'Change the Email Subject Prefix and the Text Prefix
oEmailItem.Subject = "Attached files"
oEmailItem.BodyFormat = olFormatHTML
oEmailItem.HTMLBody = LineBreak & LineBreak & "The following files are attached: " & LineBreak _
& strText & LineBreak & LineBreak & "Kind regards," & LineBreak & "Val" _
& LineBreak & LineBreak & strBuffer