I need to add button sending e-mail with default client on MS CRM 2011 ribbon.
I've added following section to customizations.xml
.
<CustomActions>
<CustomAction Id="Company.{!EntityLogicalName}.MainTab.ContactSupport.CustomAction"
Location="Mscrm.HomepageGrid.{!EntityLogicalName}.MainTab.ExportData.Controls._children"
Sequence="72">
<CommandUIDefinition>
<Button Id="Company.{!EntityLogicalName}.MainTab.ContactSupport.Button"
Command="Company.all.MainTab.HelpGroup.ContactSupport.Command"
LabelText="Contact Support"
ToolTipTitle="Contact project support via e-mail"
ToolTipDescription="Contact project support via e-mail"
TemplateAlias="o3"
Image16by16="/_imgs/ribbon/senddirectmail_16.png"
Image32by32="/_imgs/ribbon/senddirectmail_32.png" />
</CommandUIDefinition>
</CustomAction>
</CustomActions>
...
...
...
<CommandDefinitions>
<CommandDefinition Id="Company.all.MainTab.HelpGroup.ContactSupport.Command">
<EnableRules />
<DisplayRules />
<Actions>
<Url Address="mailto:[email protected]" />
</Actions>
</CommandDefinition>
</CommandDefinitions>
And it works. However on button click it opens new window. Which stays empty, since it's nothing to display — just call e-mail client.
Is there any workaround? How to start e-mail client without opening new window?