[Vtigercrm-developers] Enhancement to email notifications

Alan Lord (News) alanslists at gmail.com
Tue May 25 09:26:03 PDT 2010


On 25/05/10 14:53, Joe Bordes wrote:
> Try this:
>
> global $site_url;
> $url=$site_url."index.php?action=DetailView&module=$module&record=".$focus->id;
>
> and let us know how it looks

Thanks Joe.

That almost worked. $site_url needs to be $site_URL and I needed to add 
a "/" before the index.php but otherwise that looks great.

$url = 
$site_URL."/index.php?action=DetailView&module=$module&record=".$focus->id;

I have added the url to the Entity ID line in the function for now.

It could probably be a little better (especially for plain text email 
clients).

When I have a mo I will work to make it more flexible and submit a patch 
via trac.

Thanks again,

Alan



>
> Joe
> TSolucio
>
>
> El 25/05/10 15:23, Alan Lord (News) escribió:
>> Hi,
>>
>> When vtiger sends a message to the owner about a new or updated entity
>> (account, contact, potential etc) it uses the function
>> sendNotificationToOwner() in includes/utils/CommonUtils.php.
>>
>> One thing I've been asked for a few times is to add a link (url) in the
>> email message back to the relevant entity.
>>
>> I've just had a quick look at the $focus object using a print_r() but
>> couldn't see an obvious way to get the entity's URL.
>>
>> Any suggestions?
>>
>> TIA
>>
>> Alan
>>
>>
>
> _______________________________________________
> Reach hundreds of potential candidates - http://jobs.vtiger.com
>


-- 
The Open Learning Centre
http://www.theopenlearningcentre.com




More information about the vtigercrm-developers mailing list