Advertisement
Guest User

config of phpmailer

a guest
Mar 28th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. <?php
  2. namespace Helpers\PhpMailer;
  3.  
  4. /*
  5. * Mail Helper
  6. *
  7. * @author David Carr - dave@daveismyname.com - http://daveismyname.com
  8. * @version 1.0
  9. * @date May 18 2015
  10. */
  11. class Mail extends PhpMailer
  12. {
  13. // Set default variables for all new objects
  14. public $From = 'booking@tranehuset.no';
  15. public $FromName = 'SK Trane Booking';
  16. public $Host = 'mailout.one.com';
  17. public $Mailer = 'smtp';
  18. public $SMTPAuth = false;
  19. //public $Username = 'booking@tranehuset.no';
  20. //public $Password = 'HIDDEN_FOR_SECURITY';
  21. //public $SMTPSecure = 'tls';
  22. public $WordWrap = 75;
  23.  
  24. public function subject($subject)
  25. {
  26. $this->Subject = $subject;
  27. }
  28.  
  29. public function body($body)
  30. {
  31. $this->Body = $body;
  32. }
  33.  
  34. public function send()
  35. {
  36. $this->AltBody = strip_tags(stripslashes($this->Body))."\n\n";
  37. $this->AltBody = str_replace("&nbsp;", "\n\n", $this->AltBody);
  38. return parent::send();
  39. }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement