E-mail (Mail.to) Plugin Feature
-
I stumbled onto a post that says Notepad++ has a mail.to feature. The instructions on how to install the plugin are a little confusing.
Here is the link I found with an internet search. https://www.codeproject.com/tips/1074647/notepadplusplus-email-plugin#_comments
It says, “To deploy the plugin, compile the project and copy the DLL file to {Notepad++ Installation Folder}}\plugins folder or you can use Notepad menu Settings>>Import>>Import plugins for the same.”
The problem is that I don’t see a DLL file, and the extracted folder has a ton of items in it.
I extracted the zip file in a folder in Downloads. I’m not certain exactly how I should use the Import feature. I thought it would be easier.
I decided to try the other method. I attempted to copy the whole extracted folder into Programs Files/Notepad (because it appears that so much is needed info in all of those folders) but got a Windows notification that said I need permission. So I decided to check here before going any further.
-
Looking at that website, it appears they have only given the source code for the plugin, not the plugin DLL itself, as it appears their main purpose is having an example of a C#-based plugin. As a result of that decision on their part, you would have to compile the project to create a DLL, and then follow their (outdated) instructions for installing the plugin.
Assuming you know how to compile C# (or can follow their instructions to do so), once you have a DLL file, you will have to modify their instructoins somewhat. They say "copy the DLL file to {Notepad++ Installation Folder}}\plugins folder ". But Notepad++ since v7.6.3 in 2019 has required an extra directory. If the DLL is called
MailTo.dll
, then it would need to go in<Notepad++InstallationDirectory>\Plugins\MailTo\MailTo.dll
– the name of the subfolder needs to match the name of the DLL file without extension. So most likelyc:\Program Files\Notepad++\Plugins\MailTo\MailTo.dll
.Assuming you don’t know how to compile C# and probably don’t have the necessary tools to do so (which I find much more likely) , you might try contacting the author of that plugin to see if they are still willing to support it and willing to produce a DLL without you having to compile it, like most plugin authors do. (They may have to update the plugin, because a lot has changed in Notepad++ since 2016, and many such older plugins are no longer compatible with modern Notepad++.)
I attempted to copy the whole extracted folder … but got a Windows notification that said I need permission
The
C:\Program Files\
hierarchy is protected by the OS to prevent accidental overwriting of critical files for your applications. If you are on your own computer, it should just prompt you for elevated permissions; if your computer is controlled by an IT department, they may or may not have given you permission to become temporarily elevated to “admin” to do such tasks. (This is nothing unique to Notepad++, so you could just search the internet for how to get elevated permissions to be able to write toc:\program files\
.)But really, even without the plugin, it’s not that many steps to attach a file opened in Notepad++ to an email using your default client:
- Save the file
- RightClick on the file tab’s title > Open Into > Open Containing Folder in Explorer (equivalent to File > Open Containing Folder Into… > Explorer)
- RightClick on the file in windows’ File Explorer, Send To > Email Recipient
-
@PeterJones said in E-mail (Mail.to) Plugin Feature:
how to compile C#
I have no idea how to compile C#. And being it’s so old, I don’t think I’ll be using it. I’ll just have to use the long way you pointed out.
-
@Troglo37 said in E-mail (Mail.to) Plugin Feature:
I’ll just have to use the long way you pointed out.
The “long way”, which is only one click more than having to navigate down into the menu system in Notepad++ to find the menu entry that the plugin creates, or maybe two clicks more than just clicking the toolbar button that the plugin adds.