blob: 405420370925092a29468496c78a3829f45072ae (
plain)
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
|
<?php
include('phpmailer.php');
class Mail extends PhpMailer
{
// Set default variables for all new objects
public $From = 'webmaster@freetorrent.fr';
public $FromName = SITENAME;
//public $Host = 'smtp.gmail.com';
//public $Mailer = 'smtp';
//public $SMTPAuth = true;
//public $Username = 'email';
//public $Password = 'password';
//public $SMTPSecure = 'tls';
public $WordWrap = 75;
public function subject($subject)
{
$this->Subject = $subject;
}
public function body($body)
{
$this->Body = $body;
}
public function send()
{
$this->AltBody = strip_tags(stripslashes($this->Body))."\n\n";
$this->AltBody = str_replace(" ", "\n\n", $this->AltBody);
return parent::send();
}
}
|