Community
    • Login

    Send File i-Mail

    Scheduled Pinned Locked Moved General Discussion
    2 Posts 2 Posters 1.7k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Eduard castanyE Offline
      Eduard castany
      last edited by

      Hi, It’s possible to do an action in a Files Menu for Send via i-mail the actual file open? Thanks .Eduard.

      1 Reply Last reply Reply Quote 0
      • PeterJonesP Offline
        PeterJones
        last edited by PeterJones

        @Eduard-castany said in Send File i-Mail:

        to do an action in a Files Menu

        In the Files menu? No.

        However, you can add something to the Run menu. If i-mail is some application found at c:\path\to\i-mail.exe, and you could send a file to i-mail by running c:\path\to\i-mail.exe --attach "d:\path\to\file", then

        1. Close all instances of Notepad++ and start one instance

        2. File > Open %AppData%\shortcuts.xml

        3. In the <UserDefinedCommands> section, add

               <Command name="send via i-mail" Ctrl="no" Alt="no" Shift="no" Key="0">"c:\path\to\i-mail.exe" --attach "$(FULL_CURRENT_PATH)"</Command>
          
        4. Save and close shortcuts.xml

        5. Exit Notepad++ and reload

        6. Run > send via i-mail should now work

        Of course, if it’s a different path, or need more or less arguments, you need to customize that example. Basically, you need to know the full command-line command to attach a file to i-mail, then you put that as the ___ in the <Command ...>___</Command>, using $(FULL_CURRENT_PATH) it the place of the filename; and if there’s a possibility of spaces in the path, put quotes around it.

        More documentation on <UserCommands> in the usermanual’s Config FIles doc

        1 Reply Last reply Reply Quote 1

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors