-
Notifications
You must be signed in to change notification settings - Fork 0
/
e_notify.php
53 lines (39 loc) · 1.55 KB
/
e_notify.php
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
47
48
49
50
51
52
53
<?php
/**
* Enquiry Plugin for the e107 Website System
*
* Copyright (C) 2008-2017 Barry Keal G4HDU (http://www.keal.me.uk)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
*/
if (!defined('e107_INIT'))
{
exit;
}
//e107::lan('enquiry','notify',true);
// v2.x Standard
class enquiry_notify extends notify
{
function config()
{
$config = array();
$config[] = array(
'name' => "New Enquiry",
'function' => "enquiryNotify",
'category' => '');
return $config;
}
function enquiryNotify($data)
{
$subject = LAN_PLUGIN_ENQUIRY_MAIL;
// $message = print_a($data,true);
$message = "<br />
" . LAN_PLUGIN_ENQUIRY_MAIL_NEW . " " . $data['enquiry_category_name'] . " " . LAN_PLUGIN_ENQUIRY_MAIL_NAME . " : " . $data['enquiry_name'] . "<br />
" . LAN_PLUGIN_ENQUIRY_MAIL_ADDR . " : " . $data['enquiry_address1'] . ", " . $data['enquiry_address2'] . ", " . $data['enquiry_town'] . ", " . $data['enquiry_county'] . $data['enquiry_postcode'] .
".<br />";
$message .= LAN_PLUGIN_ENQUIRY_MAIL_TELEPHONE . " : " . $data['enquiry_phone'] . ", " . LAN_PLUGIN_ENQUIRY_MAIL_EMAIL . " : " . $data['enquiry_email'] . " <br />
" . LAN_PLUGIN_ENQUIRY_MAIL_CATEGORY . " : " . $data['enquiry_category_name'] . "<br />" . LAN_PLUGIN_ENQUIRY_MAIL_INFO . " : <br />*******<br />" . $data['enquiry_otherinfo'] . "<br />";
$this->send('enquiryNotify', $subject, $message);
}
}