aboutsummaryrefslogtreecommitdiff
path: root/Html/classes/phpmailer/mail.php
diff options
context:
space:
mode:
authorcitizenz7 <citizenz7@protonmail.com>2017-04-20 18:50:55 +0200
committercitizenz7 <citizenz7@protonmail.com>2017-04-20 18:50:55 +0200
commit5fd9fa480f302902328b81f912dd67ce378284f8 (patch)
tree66234843ae2857fda12442e4f7577c527d48977c /Html/classes/phpmailer/mail.php
parentebe731862c7c741171138b1083906f391fc35aff (diff)
downloadfreetorrent-5fd9fa480f302902328b81f912dd67ce378284f8.tar.xz
freetorrent-5fd9fa480f302902328b81f912dd67ce378284f8.zip
V.1.4.6
Diffstat (limited to '')
-rw-r--r--Html/classes/phpmailer/mail.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/Html/classes/phpmailer/mail.php b/Html/classes/phpmailer/mail.php
new file mode 100644
index 0000000..4054203
--- /dev/null
+++ b/Html/classes/phpmailer/mail.php
@@ -0,0 +1,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("&nbsp;", "\n\n", $this->AltBody);
+ return parent::send();
+ }
+}