How can i new field in admin filed that contain mailto functionality
$fieldset->addField('email', 'link', array(
 'label' => Mage::helper('mumodule')->__('Email'),
 "target"=>"_blank",
 'mailto' => Mage::registry('mumodule')->getData('email'),
 'class' => 'required-entry',
 'required' => true,
 'name' => 'title',
 ));
using this way i cant add functionality.
is it possible to add new filed with mailto functionality?
 asked Dec 21, 2013 at 9:55
 
 
 
 Keyur Shah 
 
 18.1k6 gold badges68 silver badges80 bronze badges
 
 - 
 What do you mean by "mailto functionality"?Fabian Blechschmidt– Fabian Blechschmidt2013年12月21日 15:57:39 +00:00Commented Dec 21, 2013 at 15:57
- 
 means when click on email it use to mailto functionality of php function by the way i achieve answer,,thanks for commentKeyur Shah– Keyur Shah2013年12月23日 05:39:41 +00:00Commented Dec 23, 2013 at 5:39
1 Answer 1
I believe what you're trying to do is create a mailto: link? In which case, the mailto: is part of the URL so it should be assigned in the href attribute:
$fieldset->addField('email', 'link', array(
 'label' => Mage::helper('mumodule')->__('Email'),
 'target' => '_blank',
 'href' => 'mailto:' . urlencode(Mage::registry('mumodule')->getData('email')),
 'class' => 'required-entry',
));
default