Click to search Andy Jarrett.co.uk RSS feed

Loading Twitter

Gmail now has rich text signatures

From within the settings page of Gmail you can now create rich text signatures including changing font site, text align, style, colour, add images and links etc

Though this has been one (simple) feature missing from the product for a long time its not something I have missed. I know too many companies that abuse this feature and include un-needed images and just streams of multi-coloured text and links. Don't get me wrong, I am happy to see it, I am going to use it, but I am scared to see how some people will implement it.

Comments Comments (0) | Print Print | Send Send | 1081 Views

My blog has moved

Please update your bookmarks and feeds for my site.

I now have a Mango Blog at:

http://www.andyjarrett.com/blog

Feed URL: http://feeds.feedburner.com/andyjarrett

Comments Comments (0) | Print Print | Send Send | 1196 Views

gmail filter to read only unread messages

One of the nice features of GMail is the advanced search. These are basically a set of commands or operators that perform special actions. The problem is I tend to forget about them so this post is more for my purpose than anyone else's.

So after going through the docs I got this to find all my unread messages in my inbox via the following in the search box

view plain print about
1label:inbox is:unread

Find all of them at http://mail.google.com/support/bin/answer.py?hl=en&answer=7190

Comments Comments (2) | Print Print | Send Send | 2253 Views

Gmail Contacts Data API access with ColdFusion

I've been looking at accessing the Gmail contact data via their API. This is the first draft of my findings and is no way the finished solution but it does what it says on the tin and returns the email address's from a users Gmail account contacts. Its actually quite simple to and we're going to do this in 2 CFM pages. We are going to be using the AuthSub method of registration
There are three levels of registration:
  1. Unregistered: Application is not recognized by Google. The Access Request page, which prompts your users to either grant or deny access for your application, displays this caution highlighted in yellow: "Non-registered, not secure. This website has not registered with Google. We recommend that you continue the process only if you trust this destination."
  2. Registered: Application is recognized by Google. The Access Request page displays this caution: "Registered, not secure. This website is registered with Google to make authorization requests, but has not been configured to send requests securely. We recommend you continue if you trust this destination."
  3. Registered with enhanced security: Registered applications with a security certificate on file can use secure tokens. The Access Request page displays this message: "Registered, secure. This website is registered with Google to make authorization requests."

As we are going to be using the first method of Unregistered the user will getting some simple/basic prompts:

  1. The first will be asking them to log in and letting them know that "A third party service is requesting permission to access your Google Account"
  2. Second an Access Request page which lets the user know WHAT we are doing

Once they have logged in and agreed Google will take you back to your site. The

I've put the index.cfm in a folder on the root called contacts. Below is the content for index.cfm read the comments for what each variable is doing. This is all taken from Googles API docs on AuthSub proxy authentication.

view plain print about
1<cfhttp url="https://www.google.com/accounts/AuthSubRequest" method="get" result="res">
2    <!--- Indicates that the application is requesting a token to access contacts feeds.
3                The scope string to use is http://www.google.com/m8/feeds/ (URL-encoded, of course). --->

4    <cfhttpparam name="scope" value="http://www.google.com/m8/feeds/" type="url" />
5
6    <!--- Indicates whether the token returned can be exchanged for a multi-use (session) token. --->
7    <cfhttpparam name="session" value="1" type="url" />
8
9    <!--- Indicates whether the client is requesting a secure token. --->
10    <cfhttpparam name="secure" value="0" type="url" />
11
12    <!--- The URL of the page that Google should redirect the user to after authentication. --->
13    <cfhttpparam name="next" value="http://localhost/contacts/getAddresses.cfm" type="url" />
14</cfhttp>
15
16<cfoutput>#res.filecontent#</cfoutput>

Our second page is getAddresses.cfm In the contacts folder

view plain print about
1<cfhttp url="http://www.google.com/m8/feeds/contacts/default/base" method="get">
2    <cfhttpparam type="header" name="Authorization" value="AuthSub token=#url.token#">
3    <!--- The maximum number of entries to return. If you want to receive all of the
4        contacts, rather than only the default maximum, you can specify a very large number
5        for max-results i.e. 9999 --->

6    <cfhttpparam type="url" name="max-results" value="25" />
7</cfhttp>
8
9<!--- Dump the results--->
10<cfdump var="#cfhttp.fileContent#">

In my example I am only returning 25 records (for speed mainly) but if you want to know more about returning records check out Google API docs on query params. Also in my example I just dump the records. If you want to get out the email addresses you can use the following snippet.

view plain print about
1<cfset myXmlDoc = xmlParse(cfhttp.fileContent)>
2
3<cfoutput>
4    <cfloop from="1" to="#arrayLen(myxmldoc['feed']['entry'])#" index="i">
5    #myxmldoc['feed']['entry'][i]['gd:email'].xmlAttributes.address#<br/>
6    </cfloop>
7</cfoutput>

There is still some work to do here but this is the bare bones and a starting point for anyone interested.

Comments Comments (1) | Print Print | Send Send | 3900 Views

Accessing Google IMAP if its not enabled yet

This post is really aimed at anyone who uses GMail or Google Apps outside of the states or does not have English(US) set up as their default language!

Yes that right, if you are waiting for the IMAP settings on your Google mail account check your language settings now. This is something I remember reading about ages ago ... in short the Gmail team roll out new features for the US first and they use your language settings as a guide! Subsequently I've just enabled this on my apps account and it appeared instantly

Comments Comments (3) | Print Print | Send Send | 2873 Views

Gmail accounts for your domain

Google are beta testing the ability to have Gmail access to your Domain emails. It offers the 2Gb (nearly 3 according to my stats) Gmail account, Google Talk, Google Calendar, and a Control Panel to manage user accounts, aliases, mailing lists, and chat settings.

You have to own your domain for this, its not something Gmail will offer. While in the beta it is free, but it does mention a cost factor in the learn more which might suggest this could change? maybe for corporate/large users. Another nice feature is that you can also upload your company's logo for brand awareness as well.

https://www.google.com/hosted/

Found while looking over at Ray Camdens site, in the comments

Comments Comments (4) | Print Print | Send Send | 2619 Views

ColdFusion Meeting Calendar

Google CalendarI have created a public Google Calendar for ColdFusion meetings. The idea I had behind this is that if you run any kind of CF meeting, whether it be online (Online CF Group), at a meeting place, UKCFUG, or just a demo'ing something on a IRC chanel you can update it here so everyone knows about it and also be able to merge it with you current calendar.

The only problem is that I'm sure that I still have to invite you to join if you want to add/edit your meetings details, but anyone can view/subscribe to it.

At the moment I've only added the next UKCFUG one for tonight so you can see it in action. If you are an event organiser (and you have a gmail/calendar accout) and you want to be able to edit drop me a line in the comments and i'll enable you to add comments.

To subscribe use one of the following links

[XML]
[iCal]

I know this might seem a little presumptuous of me - but if you have any ideas on how to have a central location for meeting details drop me a line.

Comments Comments (7) | Print Print | Send Send | 4448 Views

ColdFusion - why not stay there

The Googls Adwords in Gmail are a thousand times better than what you get with most free email accounts but do come up with some good "targeted" links:

Cold Fusion Chalet
Discounted Easter Ski Holidays Now
http://www.coldfusionchalets.co.uk/

Whats the best targeted ad you've had?

Comments Comments (1) | Print Print | Send Send | 2163 Views

Google Calendar

Well to jump on the band wagon I thought I'd let everyone know for the n'th time that the Google Calendar is now online. The only thing I will say is that if you are interested get on there quick. Google have done this a few times then restricted access later, Analytics was a good example of this.

Comments Comments (0) | Print Print | Send Send | 1895 Views

Gmail and Plus Addressing for filtering

Playing around with Gmail this afternoon and discovered that it also supports Plus Addressing. This allows you to add a filter to your email address when handling ever you want to hand over you email address. Lets say your email address is yourusername@gmail.com and you wanted to sign-up to an Adobe news letter. The email address you might enter could be yourusername+adobenewsletter@gmail.com. Then in Gmail set up a filter/label and thats it.

Comments Comments (3) | Print Print | Send Send | 1942 Views

More Entries

BlogCFC by Raymond Camden + Twitter @AndyJ + ColdFusion jobs + Contact Me + Snippets/Downloads + RSS .