I am using a window.open to trigger a mailto: command.
I don't want the window to stay open so I try to close it right after.
The default email client launches correctly, but the window stays open and I get the following Javascript error:
Unable to get value of the property 'close': object is null or undefined

var win = window.open(mailto_link,'emailWindow');