Cheetah
ChMail.php
Go to the documentation of this file.
1 <?php
2 
8 // mail sending class
9 
10 class ChMail extends Mistake
11 {
12  var $_sSenderName = 'Orca Forum';
13 
18  function sendActivationMail (&$p)
19  {
20  global $gConf;
21 
22  $subj = "[L[Mail Subj Registration]]";
23 
24  $mailContent = <<<EOF
25 [L[Mail Body Registration]]
26 EOF;
27 
28  $p['site_url'] = $gConf['url']['base'];
29  foreach ($p as $k => $v) {
30  $mailContent = str_replace ('{'.$k.'}', $v, $mailContent);
31  }
32 
33  $headers = "From: =?UTF-8?B?" . base64_encode($gConf['def_title']) . "?= <" . $gConf['email']['sender'] . ">\r\nContent-type: text/html; charset=UTF-8\r\n";
34  $subj = '=?UTF-8?B?' . base64_encode($subj) . '?=';
35  return mail ($p['email'], $subj, $mailContent, $headers, '-f'.$gConf['email']['sender']);
36  }
37 
38 }
php
Mistake
Definition: Mistake.php:11
global
if(!defined("GLOBAL_MODULE")) define("GLOBAL_MODULE" global
Definition: header.inc.php:25
ChMail
Definition: ChMail.php:11
ChMail\$_sSenderName
$_sSenderName
Definition: ChMail.php:12
$gConf
global $gConf
Definition: header.inc.php:8
ChMail\sendActivationMail
sendActivationMail(&$p)
Definition: ChMail.php:18
as
as
Definition: Filter.ExtractStyleBlocks.Escaping.txt:10