by Joakim

Error when clicking a hyperlink in Outlook (Win8/Chrome)

I switched to Windows 8 on my computer as soon as it was available as an RTM version on MSDN, and so far I’m really happy with Microsoft’s latest OS offering. I have however run into a few problems related to using Chrome as my default browser (e.g. the problem I had with external links in Visual Studio 2012).

The problem for today is the error message I got when clicking hyperlinks in emails using Outlook. Instead of the hyperlink launching a website in my default web browser (Chrome) I would get an error message saying;
This operation has been cancelled due to restrictions in effect on this computer. Please contact your system administrator.”

outlook-link-error

The cause of this problem lay in the registry. It turns out that Chrome modifies some values in the registry that it (probably) shouldn’t, namely ComputerHKEY_CLASSES_ROOT .htm and ComputerHKEY_CLASSES_ROOT .html

outlook-link-error2

Chrome had changed the (Default) value of both these entries from htmlfile to ChromeHTML….  Changing the value back to htmlfile fixed the problem. Clicking hyperlinks in emails now opens up the web address in my default browser (namely Chrome) just as expected. No annoying error message.

It looks like you could run into this problem under other circumstances than mine (Win8/Chrome as default browser), as Microsoft has written a support article about it which can be found here. The support article lists several methods to fix the problem, depending on what the root cause for the error is.

by Stian

Contact Cleaner for Outlook

 

ContactCleanerAre you tired of manually having to add international calling code to your contacts when you go overseas because you were to lazy to add it in the first place?

Do you hate it when all you phone contact phone numbers are in different formats?

It’s time to do to a Contact Cleaning!

Degree Consulting Group’s Contact Cleaner does the job for you in a matter of seconds.

Features in this very first release is:

  • Automatically add country calling code to all your phone numbers
  • Remove all whitespace from phone numbers

It’s all nicely wrapped up in an Outlook Add-in, currently supports Outlook 2003 – 2010 32bit version.
The .NET Framework is an prerequisite and you can get it here, if you don’t already have it installed.
[wpdm_file id=1]

by Andreas

Outlook 2007/2010 – Unclickable hyperlinks

I just discovered that there is a limit in Outlook 2010 and 2007 for how long a hyperlink is allowed to be before it becomes “unclickable” (i.e. it looks like a link, but no browser window will open when clicking it). Without altering the security settings, any link longer than 1023 characters simply wont open unless you copy and paste it yourself. Not really a problem for many of us, but in a recent project my application sent out emails containing verification links with an encrypted query string parameter. This would have caused a lot of confusion (and frustration) amongst the less IT competent target audience.

image

This is also the case for “user friendly links” with a different display text (Like this one) – if the underlying hyperlink exceeds the limit it still won’t work.

Tags:
by Njål

Outlook 2010 & Powershell: Importing all email addresses in Sent Items to Autocomplete list

If you have reinstalled Outlook or perhaps set up your email account on a new PC – you’ll be pretty annoyed that the AutoComplete list in Outlook is empty.

This list has nothing to do with your contact list – it’s just a list of people you have sent emails to. Until Outlook 2010 this list was handled locally by Outlook – not on the Exchange/email server. The list used to be a relatively simple .nk2 file.

 

In Outlook 2010 this list is now stored in a separate Address Group called Suggested Contacts.  You’ll find this Group under Contacts in Outlook. Like any other Address Group.

 

 

This is actually a lot better than using the nk2 files – which had the habit of corrupting themselves. Another advantage is that the Autocomplete list in Outlook 2010 should work across different pc’s – given you are using Exchange server (or some other ActiveSync server like Kerio etc.)

Nevertheless – here’s a script that loops through all Emails in SentItems and adds Names & Emails of Recipients to the Suggested Contacts group. This will make your autocomplete work like a charm again. The script can relatively easy be modified to scan through your inbox and add all email addresses there as well.

 

# OUTLOOK AUTOCOMPLETE POWERIMPORT
#
# Author: N. Gjermundshaug - Degree Consulting Group AS - www.degree.no
#
# This script requires Outlook to be installed and configured. It scans through the SentItems folder.
# For each sent email, it loops through each Recipient - and adds the recipient to the "Suggested Contacts" Address Group.
# Contacts in the "Suggested Contacts" will be displayed in the autocomplete field - when composing new emails (like nk2).
# Contacts are only added once from the script.

$outlook = new-object -com outlook.application
$olFolders = "Microsoft.Office.Interop.Outlook.OlDefaultFolders" -as [type]
$namespace = $outlook.GetNameSpace("MAPI")
$sentItems = $namespace.getDefaultFolder($olFolders::olFolderSentMail)
$alreadyAddedEmails = @() #Empty Array
$counter = 0;
$totalItems = $sentItems.items.count;

Write-Host "Scanning through" $totalItems "emails in SentItems"

$contacts = $outlook.Session.GetDefaultFolder($olFolders::olFolderSuggestedContacts)


##############################################################################################################
# FUNCTION - Adds Name/Email to SuggestedContacts - Unless it has already been added before (by this script).
##############################################################################################################
Function AddToSuggestedContactsIfNotAlreadyAdded ($name, $email)
{

    if(($name -eq "") -or ($email -eq "") -or ($name -eq $null) -or ($email -eq $null)){
        return;
    }

    $name = $name.Replace("'", "").Replace("""", "")


    $contactAlreadyAdded = $false

    foreach ($elem in $global:alreadyAddedEmails) {
        if(($elem.ToLower() -eq $email.ToLower())){
            $contactAlreadyAdded = $true
            Write-Host  ($global:counter)"/"($totalItems)  "SKIPPED " $name.PadRight(25," ") "-" $email
            return;
        }
    }

    if(!$contactAlreadyAdded )    {
        $newcontact = $contacts.Items.Add()
        $newcontact.FullName = $name
        $newcontact.Email1Address = $email
        $newcontact.Save()
        $global:alreadyAddedEmails += $email
        Write-Host ($global:counter)"/"($totalItems)  "ADDED   " $name.PadRight(25," ") "-" $email
    }
}

# Loop through all emails in SentItems
$sentItems.Items | % {

    #Loop through each recipient
    $_.Recipients | %{
        AddToSuggestedContactsIfNotAlreadyAdded $_.Name  $_.Address
    }
    $global:counter = $global:counter + 1
}

Write-Host "Done!"
$outlook.Quit()

 

 

Other keywords: Rebuild Cache Restore Entry Post Migration Auto Complete Repair Batch Bulk Auto Completion PS1 Import

by Andreas

The attachment size exceeds the allowable limit

Microsoft Outlook 2010:

“the attachment size exceeds the allowable limit”

Great error message, greetings from Microsoft! It has now (apparently) deliberately been put up a few obstacles by the overlords in Seattle to limit the maximum size of any email attachment to 20MB. Sounds ridicilously low these days, but at least there are other options. Check out Filemail.com to try a free (and: important, important! : AD FREE) service to send large files easy. It also has other features (I especially like the album function), worth sacrificing a couple of minutes to check out. No need to register before you try it either.

PS: There is a blog entry about Filemail.com on Degree Blog (written in Norwegian).

PPS: there is a “hack” where you adjust the limit in the registry but:
1. That doesnt mean your ISP allows the size you want, what if you have 200MB you want to send?
2. You are changing your registry.. not for the every day user

PPPS: I am a developer. I dont know about the tweaks and configuration possibilities in Exchange 2010. There might be ways around this, but show me the administrator or the ISP that agrees that emails with 500MB attachments are necessary. They don’t care that your holiday photos were taken in RAW format with a Canon 500D. They just don’t care..