In VTiger 7, VTE Custom Module Builder does not add “Send Mail” button to custom modules because the Email field is not a default field when creating a custom module. You can do it by changing the code of the Custom Modules.
public function getDetailViewLinks($linkParams)</p> <p>{</p> <p>$currentUserModel = User_Privileges::getCurrentUserPrivileges();</p> <p>$emailModuleModel = Vtiger_Module_Model::getInstance('Emails');</p> <p>$recordModel = $this-->getRecord();</p> <p> </p> <p>$linkModelList = parent::getDetailViewLink($linkParams);</p> <p> </p> <p>if ($currentUserModel-->hasModulePermission($emailModuleModel-->getId()))</p> <p>{</p> <p>$basicActionLink = array(</p> <p>'linktype' => 'DETAILVIEWBASIC',</p> <p>'linklabel' => 'LBL_SEND_EMAIL',</p> <p>'linkurl' => 'javascrip:Vtiger_Detail_Js.triggerSendEmail("index.php?module=' .$this-->getModule()-->getName() .'&view=MassActionAjax&mode=showComposeEmailFrom&step=step1","Emails");',</p> <p>'linkicon'=>"</p> <p>);</p> <p>$linkModelList['DETAILVIEWBASIC'][] = Vtiger_Link_Model::getInstanceFromValues($basicActionLink);</p> <p>}</p> <p>return $linkModelList;</p> <p>}