/framework/experimental/mail/Mailer.php

http://zoop.googlecode.com/ · PHP · 25 lines · 23 code · 2 blank · 0 comment · 3 complexity · c77010337069743184bd4880b4862c5b MD5 · raw file

  1. <?php
  2. class Mailer extends PHPMailer
  3. {
  4. function Mailer()
  5. {
  6. $this->PluginDir = zoop_dir . '/phpmailer/';
  7. $this->SetLanguage('en', zoop_dir . '/phpmailer/languages/');
  8. if(mail_method == 'smtp')
  9. {
  10. $this->IsSMTP();
  11. $this->Host = mail_smtp_host;
  12. $this->SMTPAuth = mail_smtp_auth_use;
  13. if(mail_smtp_auth_use)
  14. {
  15. $this->Username = mail_smtp_auth_username;
  16. $this->Password = mail_smtp_auth_password;
  17. }
  18. }
  19. else
  20. assert(false);
  21. $this->CharSet = 'UTF-8';
  22. }
  23. }