Kayako logo
Developers & Code Interested in customizing your Kayako products? Discuss modifications and develop your own mods with the community.

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  (#1) Old
actionhero Offline
New Member
 
Posts: 23
Join Date: May 2008
php in mails? - 15-06-2008, 03:28 PM

Hi, may it be possible to include php in mails?
   
Reply With Quote
  (#2) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,682
Join Date: Aug 2006
Location: Mumbai, India
16-06-2008, 04:57 AM

What kind of PHP code do you want to include?



Professional and Affordable Kayako Skins - Specialists in Kayako Skinning & Customization - Professional Paid Support
Our Skins and Services - http://www.supportskins.com/store/
SupportSkins.com - http://www.supportskins.com/
   
Reply With Quote
  (#3) Old
actionhero Offline
New Member
 
Posts: 23
Join Date: May 2008
16-06-2008, 08:38 AM

I want to <include> an external script. And get the ticket variables (username, fullname, ...)
Tried:
Quote:
<{PHP}>
$pncout = "";

...

$pTest = "";
$pTest = $this->get_vars('username');
$pncout .= "Import var username: ". $pTest . "<br />\n";
$pTest = "";
$pTest = $this->get_vars('fullname');
$pncout .= "Import var fullname: ". $pTest . "<br />\n";
$pTest = "";
$pTest = $this->get_vars('name');
$pncout .= "Import var name: ". $pTest . "<br />\n";
$pTest = "";
$pTest = $this->get_vars('email');
$pncout .= "Import var email: ". $pTest . "<br />\n";
$pTest = "";
$pTest = $this->get_vars('useremail');
$pncout .= "Import var useremail: ". $pTest . "<br />\n";
$pTest = "";
$pTest = $this->get_vars('ticketid');
$pncout .= "Import var ticketid: ". $pTest . "<br />\n";

...

include( "fqdn/script.php" );

and two
ifs {}


<{/PHP}>
   
Reply With Quote
  (#4) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,682
Join Date: Aug 2006
Location: Mumbai, India
16-06-2008, 02:30 PM

I do not think this will work however you need to confirm this with a Kayako developer.



Professional and Affordable Kayako Skins - Specialists in Kayako Skinning & Customization - Professional Paid Support
Our Skins and Services - http://www.supportskins.com/store/
SupportSkins.com - http://www.supportskins.com/
   
Reply With Quote
  (#5) Old
Andrew Scott Offline
Member
 
Andrew Scott's Avatar
 
Posts: 143
Join Date: Apr 2008
Location: Swindon, UK
16-06-2008, 04:07 PM

I see you want to replace standard Smarty templates variables. To do so you have to initialize your class inside of _KAYAKO_ROOT_DIR/includes/SmartyLight/class.template.php But I'm not sure if it works. You need to test. Please let me know if you will be able to do so. Maybe we will change some our templates with your tips.

Andrew, Holbi


Andrew Scott
kayako]at[holbi.co.uk
Kayako Development Manager
Holbi Kayako development

   
Reply With Quote
Reply

Tags
mails, php

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
GoPHP5 BigTom3007 Comments, Questions & Feedback 10 15-05-2008 08:10 AM
Setup PHP on a Windows 2000 server netFusion Technical Chat 5 03-10-2007 09:01 AM
problem ! graziano68 SupportSuite, eSupport and LiveResponse 2 08-11-2006 07:07 AM
mail parser not working netjunkie SupportSuite, eSupport and LiveResponse 8 14-06-2006 10:37 AM
Mail Parser - PHP Fatal error raiseAlert() bdwyer SupportSuite, eSupport and LiveResponse 3 10-05-2006 10:28 PM



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46