The following warnings occurred: | ||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
|
helpers.php -- email_body - Printable Version +- UserSpice (https://userspice.com/forums) +-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23) +--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26) +--- Thread: helpers.php -- email_body (/showthread.php?tid=301) |
helpers.php -- email_body - Sebastian - 10-05-2016 Hi, I've added a contact form to the UserSpice navigation bar and wanted to use the UserSpice functions like email and email_body from the helpers.php. However, the function email_body requires an email template: Code: require $abs_us_root.$us_url_root.'users/views/'.$template; Or makes it sense to put it in usersc/views and add something like: <pre> Code: if (file_exists($abs_us_root.$us_url_root.'users/views/'.$template)) { <pre> Code: if (file_exists($abs_us_root.$us_url_root.'usersc/views/'.$template)) { ? Thanks, Sebastian |