Is there a plugin to send emails with selected file as attachment ?

English support forum

Moderators: Stefan2, white, sheep, Hacker

Post Reply
User avatar
ChapierX
Junior Member
Junior Member
Posts: 26
Joined: 2018-12-14, 19:18 UTC

Is there a plugin to send emails with selected file as attachment ?

Post by *ChapierX » 2019-01-18, 19:04 UTC

is there a way that selected files that have been highlighted at the TC main panel be attached as email attachments at Outlook?

User avatar
Hacker
Moderator
Moderator
Posts: 11183
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: plugin to send emails

Post by *Hacker » 2019-01-18, 21:37 UTC

ChapierX,
Usually right click - Send to - Mail recipient.

HTH
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.

User avatar
Stefan2
Power Member
Power Member
Posts: 2395
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: plugin to send emails

Post by *Stefan2 » 2019-01-18, 22:14 UTC

You can automate office by command line switches.

https://support.office.com/en-us/article/command-line-switches-for-microsoft-office-products-079164cd-4ef5-4178-b235-441737deb3a6
>>> Outlook

"c:\program files\microsoft office\office15\outlook.exe" /a "c:\my documents\labels.doc"

- - -

TC can aid you by execute DOS commands and providing %Parameters to pass selected file names.

"c:\program files\microsoft office\office15\outlook.exe" /a %P%N


Right click an button in TC buttonbar, >> Change... >> [Help]

( use that %P%N without quotes, as TC will add them himself if he detect a space in path/filename )

Exemple button:
Command: "c:\program files\microsoft office\office15\outlook.exe"
Parameter: /a %P%N
Start path:
Icon: "c:\program files\microsoft office\office15\outlook.exe"
Tooltip: what do i do?

- - -


And there are a few scripts doing such things for example with COM objects:
https://ghisler.ch/board/viewtopic.php?p=301286#p301286

Pseudo script:

Code: Select all

Set App = GetObject(, "Outlook.Application")
Set AppItem = App.CreateItem(0)

	Set oTextStream = FSO.OpenTextFile(sTCtempList,FORREADING)
	Do Until oTextStream.AtEndOfStream
		vFullName = oTextStream.ReadLine
				
		'//Add current file name to Outlook:
		AppItem.Attachments.Add  vFullName
		
	Loop
	oTextStream.Close
	
'//Open Outlook:
AppItem.Display



 

User avatar
ChapierX
Junior Member
Junior Member
Posts: 26
Joined: 2018-12-14, 19:18 UTC

Re: plugin to send emails

Post by *ChapierX » 2019-01-19, 20:12 UTC

sorry I don't get it too much

what should I do if I would like to open the Outlook new mail Window including as attachments the files selected at the current TC panel?

User avatar
Dalai
Power Member
Power Member
Posts: 6503
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: plugin to send emails

Post by *Dalai » 2019-01-19, 20:40 UTC

Does drag'n'drop'ing the files (from TC to Outlook) work? It does in Thunderbird and The Bat.

Regards
Dalai
#101164 Personal licence
Athlon X4 880K, 16 GiB RAM, Gigabyte F2A88X-D3HP, Win7 x64

Plugins: Services2, Startups

User avatar
ChapierX
Junior Member
Junior Member
Posts: 26
Joined: 2018-12-14, 19:18 UTC

Re: plugin to send emails

Post by *ChapierX » 2019-01-19, 21:40 UTC

regardless that, my question is different
thanks!

User avatar
Horst.Epp
Power Member
Power Member
Posts: 3275
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: plugin to send emails

Post by *Horst.Epp » 2019-01-20, 10:04 UTC

ChapierX wrote:
2019-01-19, 20:12 UTC
sorry I don't get it too much

what should I do if I would like to open the Outlook new mail Window including as attachments the files selected at the current TC panel?
Try a button as stefan2 said above.

Command: "c:\program files\microsoft office\office15\outlook.exe"
Parameter: /a %P%N

Modify according to your Outlook installation of course.
Windows 10 Home x64 October 2018 Update, Version 1809 (OS Build 17763.437)
Intel(R) Core(TM) i7-4770 CPU @ 3.40GH, 16GB RAM
TC 9.22a x64 and x86, Everything 1.4.1.939 (x64)

User avatar
tbeu
Power Member
Power Member
Posts: 1228
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Re: plugin to send emails

Post by *tbeu » 2019-01-22, 10:11 UTC

ChapierX wrote:
2019-01-18, 19:04 UTC
is there a way that selected files that have been highlighted at the TC main panel be attached as email attachments at Outlook?
Not Outlook, but Blat can do it.
TC plugins: Autodesk 3ds Max Preview, Autodesk Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, SolidWorks Preview and more

Post Reply