Hi David - thanks for the tips - we actually had the email functionality going for a while, but it had stopped working, and I could not figure out why the emails were not coming through.
Also, I wanted the leads to appear standalone - outside of email, in some kind of pop up application. It would lead to better responsiveness than if it were stuck in email.
Following on from my earlier post, I dug out the code I used to get it working - this was applied to LeadFormBase.php, as patr of the handlesave function.
Code:
$return_id = $focus->id;
/* note that xx, mypass, mysite and yy are supplied as part of the elertz set up process
/* Elertz Notification Code */
/*define varible $updateservicecall. */
$updateservicecall = "http://www.elertz.com/new/update.aspx?webmaster_id=xx&password=mypass¬ification_description=New+Lead+generated&schema_id=yyyy&sms_txt=New+Lead+generated&thumbnail=&url=";
/* urlencode the notifcation url and store it in the variable $notificationurl.*/
$notificationurl = "https://www.mysite.com/sugar/index.php?action=DetailView&module=Leads&record=";
$notificationurl = $notificationurl.$return_id;
$notificationurl = urlencode($notificationurl);
/*now add the nicely urlencoded url to the $updateservicecall string */
$updateservicecall = $updateservicecall.$notificationurl;
/* fire the elertz */
$handle = fopen($updateservicecall, "r");
/* End Elertz Notification Code */
/* code continues....
if (isset($_POST[$prefix.'prospect_id']) && !empty($_POST[$prefix.'prospect_id'])) {
Bookmarks