Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Helpers\PhpMailer;
- /*
- * Mail Helper
- *
- * @author David Carr - dave@daveismyname.com - http://daveismyname.com
- * @version 1.0
- * @date May 18 2015
- */
- class Mail extends PhpMailer
- {
- // Set default variables for all new objects
- public $From = 'booking@tranehuset.no';
- public $FromName = 'SK Trane Booking';
- public $Host = 'mailout.one.com';
- public $Mailer = 'smtp';
- public $SMTPAuth = false;
- //public $Username = 'booking@tranehuset.no';
- //public $Password = 'HIDDEN_FOR_SECURITY';
- //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();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement