Welcome to GmailNotifier.Net Sign in | Join
in Search

Mailto through Gmail for My Domain

Last post 11-14-2007 10:42 PM by noshtar. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 09-02-2007 11:45 PM

    • bcdady
    • Top 50 Contributor
    • Joined on 08-28-2007
    • Posts 4

    Mailto through Gmail for My Domain

    Since neither Google's nor Sohail's notifiers could provide me with mailto links leading to Gmail for My Domain compose screens, I came up with my own solution. I've been practicing new Windows PowerShell, so I chose to create this script in PowerShell, but it could easily be translated to VBScript or CMD (or Perl, etc). Please let me know if you'd like help doing so.

     Here's the source code (paste into Notepad and save as Gmail_mailto.ps1):

    #! PowerShell Script
    # route mailto links to Gmail URL - based on suggestion for Ubuntu (BASH) found at:
    # http://www.howtogeek.com/howto/ubuntu/set-gmail-as-default-mail-client-in-ubuntu/
    #
    # To enable, set mailto reg value (HKEY_CLASSES_ROOT\mailto\shell\open\command) to following:
    # C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe [Path where you saved it]\Gmail_mailto.ps1 %1
    # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
    #
    # Set preferred browser
    $Browser = 'C:\Program Files\Mozilla Firefox\firefox.exe' # could also be 'C:\Program Files\Internet Explorer\iexplore.exe'
    #
    # Setup which gmail domain to use, enables Google Apps for My Domain compatability
    $GmailDomain = 'a/example.net/' # Use "mail" for gmail.com, otherwise use '/a/yourdomain.com/'
    #
    # Remove mailto from original link
    $URL = $args[0] -replace('mailto://','')
    #
    # Launch url - open compose window in browser
    & "$Browser" "http://mail.google.com/$GmailDomain\?view=cm&tf=0&to=$URL"
     

    Filed under: , ,
  • 10-15-2007 2:48 PM In reply to

    Re: Mailto through Gmail for My Domain

    Another, possibly easier approach would be:

     1) Install Google's gmail notifier

    (just install, no need to login or run)

    2) Open regedit and locate the key:

    HKEY_CLASSES_ROOT\mailto\shell\open\command

    3)  Add a URL option to point to your google domain

    E.G:

    "c:\program files\google\gmail notifier\gnotify.exe" -mailto %1

    ==>

    "c:\program files\google\gmail notifier\gnotify.exe" -url http://mail.google.com/a/YourDomainName.org  -mailto %1

    where YourDomain.org would be replaced by your domain name :-)

     

     

     

    Filed under: , ,
  • 10-28-2007 2:01 PM In reply to

    Re: Mailto through Gmail for My Domain

    eskildheim:

    Another, possibly easier approach would be:

    2) Open regedit and locate the key:

    HKEY_CLASSES_ROOT\mailto\shell\open\command

    3)  Add a URL option to point to your google domain

     

    This worked wonderfully. Easy. Thanks!

     Now, in some applications there is a menu item or button to allow you to send the document via e-mail (e.g. Adobe Acrobat, Word, Excel, etc...). These don't seem to use the mailto: protocol. Any idea how to change their behaviour so that one could, say, send the pdf directly from Adobe Acrobat to gmail?

     

     

  • 11-14-2007 10:08 PM In reply to

    Re: Mailto through Gmail for My Domain

    eskildheim,

     I understand steps 1 and 2, but could you elaborate on step 3?  Do I right click and click New > Key?  Then what do I enter in for the Value Name and Value Data?

     Thanks.

     

  • 11-14-2007 10:42 PM In reply to

    Re: Mailto through Gmail for My Domain

    Nevermind, I realized that I didn't have the original gmail notifier installed.

     Thanks!
     

Page 1 of 1 (5 items)
Copyright © GmailNotifier.Net, 2010. All rights reserved.