Skip to content

Enable to select which browser to use when opening a link from an email in Outlook for Windows.

License

Notifications You must be signed in to change notification settings

smumovic/OutlookOpenLinkInOtherBrowsers

Repository files navigation

OutlookOpenLinkInOtherBrowsers

A Microsoft Outlook add-in that extracts links from emails and allows you to open them in different browsers based on configurable rules. Perfect for users who need to open work links in one browser profile and personal links in another.

🌟 Features

  • Link Extraction: Automatically extracts all links from HTML and plain text emails
  • Browser Rules: Configure different browsers or browser profiles for different email accounts
  • Custom Task Pane: View all extracted links in a convenient side panel
  • Link Categorization: Separates visible links from hidden/tracking links
  • Theme Support: Light and dark theme options
  • Flexible Configuration: Support for custom browser launch commands with parameters
  • Multiple Account Support: Different rules for different email accounts in Outlook

πŸ“Έ Screenshots

Main Interface

Main Interface The links pane showing extracted links from an email

Configuration Panel

Configuration Panel Configure browser rules for different accounts

Theme Options

Dark Theme Dark theme support for better visibility

Browser Rule Examples

Browser Rules Examples of different browser configurations

πŸš€ Installation

Prerequisites

  • Microsoft Outlook 2016 or later
  • Windows 10 or later
  • .NET Framework 4.7.2 or later
  • Visual Studio Tools for Office Runtime

Installation Steps

  1. Download the latest release from the Releases page
  2. Close Outlook completely
  3. Run the installer (OutlookOpenLink.vsto)
  4. Follow the installation prompts
  5. Restart Outlook
  6. Enable the add-in if prompted by Outlook's security settings

Manual Installation (Development)

  1. Clone this repository
  2. Open the solution in Visual Studio 2019 or later
  3. Build the solution in Release mode
  4. Deploy the add-in from Visual Studio

πŸ“– Usage

Basic Usage

  1. Open an email in Outlook
  2. Click the "Links" button in the Outlook ribbon or toolbar
  3. View extracted links in the side panel
  4. Click any link to open it with the configured browser

Configuration

Setting Up Browser Rules

  1. Open the Links panel by clicking the Links button
  2. Expand the configuration section by clicking the toggle button
  3. Enter a browser rule for your account using this format:
"C:\Program Files\Google\Chrome\Application\chrome.exe" --profile-directory="Profile 1" {url}
  1. Click Save to store the rule

Rule Template Examples

Chrome with specific profile:

"C:\Program Files\Google\Chrome\Application\chrome.exe" --profile-directory="Work Profile" {url}

Edge with specific profile:

"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --profile-directory="Profile 2" {url}

Firefox with specific profile:

"C:\Program Files\Mozilla Firefox\firefox.exe" -P "Work" {url}

Default system browser:

{url}

Account-Specific Rules

The add-in automatically detects your email account and applies the corresponding rule. You can configure different rules for:

  • Work email accounts
  • Personal email accounts
  • Shared mailboxes

Theme Selection

Choose between light and dark themes:

  1. Open the Links panel
  2. Expand the configuration section
  3. Select your preferred theme from the dropdown
  4. The theme is automatically applied and saved

βš™οΈ Configuration

Rule Format

Browser rules use a template format where {url} is replaced with the actual link URL:

"path/to/browser.exe" [options] {url}

Special Parameters

  • {url} - The URL to open (automatically quoted)
  • --profile-directory="ProfileName" - Chrome/Edge profile
  • -P "ProfileName" - Firefox profile
  • --incognito - Chrome/Edge incognito mode
  • --private-window - Firefox private browsing

Configuration Storage

Rules are stored locally in:

%APPDATA%\OutlookOpenLinkInOtherBrowsers\rules.txt

πŸ› οΈ Development

Prerequisites

  • Windows 10/11
  • Visual Studio 2019 or later with Office/SharePoint tools
  • Microsoft Office Developer Tools
  • .NET Framework 4.7.2 SDK

Building the Project

  1. Clone the repository:

    git clone https://github.com/smumovic/OutlookOpenLinkInOtherBrowsers.git
    cd OutlookOpenLinkInOtherBrowsers
  2. Open the solution:

    OutlookOpenLink.sln
  3. Restore NuGet packages:

    nuget restore
  4. Build the solution:

    msbuild OutlookOpenLink.sln /p:Configuration=Release

Project Structure

OutlookOpenLinkInOtherBrowsers/
β”œβ”€β”€ OutlookOpenLink.Core/              # Core library (.NET Standard 2.0)
β”‚   β”œβ”€β”€ Contracts/                     # Interfaces
β”‚   β”œβ”€β”€ Models/                        # Data models
β”‚   β”œβ”€β”€ Services/                      # Business logic
β”‚   └── Utilities/                     # Helper classes
β”œβ”€β”€ OutlookOpenLink.DesktopAddin/      # Outlook VSTO Add-in
β”‚   β”œβ”€β”€ UI/                           # User interface components
β”‚   β”œβ”€β”€ Services/                     # Add-in specific services
β”‚   β”œβ”€β”€ Ribbon/                       # Outlook ribbon integration
β”‚   └── ThisAddIn.cs                  # Main add-in class
└── docs/                             # Documentation and screenshots

Key Components

  • LinkExtractor: Parses HTML and text to extract links
  • BrowserLauncher: Handles opening URLs with configured browsers
  • RuleStore: Manages browser rules and user preferences
  • LinksPaneControl: Main UI component for the task pane
  • ThisAddIn: Primary add-in entry point and event handling

πŸ”§ Troubleshooting

Common Issues

Add-in not loading:

  • Check if Visual Studio Tools for Office Runtime is installed
  • Verify Outlook trust settings for add-ins
  • Check Windows Event Viewer for error details

Links not opening:

  • Verify browser path in rule configuration
  • Check if browser profiles exist
  • Test browser command manually in Command Prompt

Configuration not saving:

  • Ensure %APPDATA% folder has write permissions
  • Check if antivirus is blocking file access

Debug Mode

Enable debug logging by adding this to your rule file:

#DEBUG=true

Logs will be written to the Windows Event Viewer under Applications and Services Logs.

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

Development Guidelines

  1. Follow existing code style and conventions
  2. Add unit tests for new functionality
  3. Update documentation as needed
  4. Test with multiple Outlook versions if possible

πŸ“ž Support

🎯 Roadmap

  • Support for additional browsers
  • Import/export configuration
  • Link filtering and categorization options
  • Integration with password managers
  • Outlook Web App support

πŸ“ˆ Changelog

v1.0.0

  • Initial release
  • Basic link extraction and browser launching
  • Configuration UI with theme support
  • Account-specific browser rules

Made with ❀️ for Outlook users who need better link management

About

Enable to select which browser to use when opening a link from an email in Outlook for Windows.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages