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u67ד͔cN5V?})DL0 e2 RB]A"%_`u;AHFb)!J`LK~a4<py7iMSڧ/Z,uDef$L~ \۔JJI9naů [mim 8Np( cfŚ)4M'GCb8–4^ɩYwW;#]2bk^ev,⿵5i.‰~:Q)j"Y9˗2(y̽@]9@EUJn((> &y_Kʀc6$U@q:LJ}[ sga\ q@ zȥv6o;cQ66>n~YhkE` nCP/D{vk4dNΙQ(,_YmNa0YBR-BFh}`-pN+n㳂ӱuc@.QZ#[>ok[0%-P׫ @Њ:!r˹nˇ* RlQ'_gu6`񰩤:$ƒ@ڒl%(0OPMC2dnM1O =U/*f=>g]q̊yfjV{K$I]xXi{7b|?A2Zsz}o2ָ<PV.c!l,35 k։D-T{җU d6wH=Vtа%4j/PO 7>g>^m+bnCn Ĝ-i &("G\<ބ+0D1botB2ʒsy=LqgGBlD23Cخ+^6][7[JMhn\5m?eDQ0PZ0FeRn#'%hcw ç:FXt*FCG\w}QG66nu!< !OhUkބ^ΌIT_^}}uR0[sl2E)J ^I!7aKl&N eEutmPgGogFYRJ|:3`=#BKbU7%u0j1K":6FГp'o@&Dd륀mqR=ZSGBC9nEnըѧˏCmHFq gܩn.?p*aRN{{1#/F1{)$q C_nY"ړ &n/`, appropriate for browser output * * `error_log` Output to error log as configured in php.ini * * Alternatively, you can provide a callable expecting two params: a message string and the debug level: * * $mail->Debugoutput = function($str, $level) {echo "debug level $level; message: $str";}; * * @type string|callable * @see SMTP::$Debugoutput */ public $Debugoutput = 'echo'; /** * Whether to keep SMTP connection open after each message. * If this is set to true then to close the connection * requires an explicit call to smtpClose(). * @type boolean */ public $SMTPKeepAlive = false; /** * Whether to split multiple to addresses into multiple messages * or send them all in one message. * @type boolean */ public $SingleTo = false; /** * Storage for addresses when SingleTo is enabled. * @type array * @TODO This should really not be public */ public $SingleToArray = array(); /** * Whether to generate VERP addresses on send. * Only applicable when sending via SMTP. * @link http://en.wikipedia.org/wiki/Variable_envelope_return_path * @link http://www.postfix.org/VERP_README.html Postfix VERP info * @type boolean */ public $do_verp = false; /** * Whether to allow sending messages with an empty body. * @type boolean */ public $AllowEmpty = false; /** * The default line ending. * @note The default remains "\n". We force CRLF where we know * it must be used via self::CRLF. * @type string */ public $LE = "\n"; /** * DKIM selector. * @type string */ public $DKIM_selector = ''; /** * DKIM Identity. * Usually the email address used as the source of the email * @type string */ public $DKIM_identity = ''; /** * DKIM passphrase. * Used if your key is encrypted. * @type string */ public $DKIM_passphrase = ''; /** * DKIM signing domain name. * @example 'example.com' * @type string */ public $DKIM_domain = ''; /** * DKIM private key file path. * @type string */ public $DKIM_private = ''; /** * Callback Action function name. * * The function that handles the result of the send email action. * It is called out by send() for each email sent. * * Value can be any php callable: http://www.php.net/is_callable * * Parameters: * boolean $result result of the send action * string $to email address of the recipient * string $cc cc email addresses * string $bcc bcc email addresses * string $subject the subject * string $body the email body * string $from email address of sender * @type string */ public $action_function = ''; /** * What to put in the X-Mailer header. * Options: An empty string for PHPMailer default, whitespace for none, or a string to use * @type string */ public $XMailer = ''; /** * Only For XOAUTH - Google * Options: An empty string for PHPMailer default, Enter the email used to get access token * @type string */ // public $UserEmail = ''; // public $RefreshToken = ''; // public $ClientId = ''; // public $ClientSecret = ''; /** * An instance of the SMTP sender class. * @type SMTP * @access protected */ protected $smtp = null; /** * The array of 'to' addresses. * @type array * @access protected */ protected $to = array(); /** * The array of 'cc' addresses. * @type array * @access protected */ protected $cc = array(); /** * The array of 'bcc' addresses. * @type array * @access protected */ protected $bcc = array(); /** * The array of reply-to names and addresses. * @type array * @access protected */ protected $ReplyTo = array(); /** * An array of all kinds of addresses. * Includes all of $to, $cc, $bcc * @type array * @access protected */ protected $all_recipients = array(); /** * The array of attachments. * @type array * @access protected */ protected $attachment = array(); /** * The array of custom headers. * @type array * @access protected */ protected $CustomHeader = array(); /** * The most recent Message-ID (including angular brackets). * @type string * @access protected */ protected $lastMessageID = ''; /** * The message's MIME type. * @type string * @access protected */ protected $message_type = ''; /** * The array of MIME boundary strings. * @type array * @access protected */ protected $boundary = array(); /** * The array of available languages. * @type array * @access protected */ protected $language = array(); /** * The number of errors encountered. * @type integer * @access protected */ protected $error_count = 0; /** * The S/MIME certificate file path. * @type string * @access protected */ protected $sign_cert_file = ''; /** * The S/MIME key file path. * @type string * @access protected */ protected $sign_key_file = ''; /** * The optional S/MIME extra certificates ("CA Chain") file path. * @type string * @access protected */ protected $sign_extracerts_file = ''; /** * The S/MIME password for the key. * Used only if the key is encrypted. * @type string * @access protected */ protected $sign_key_pass = ''; /** * Whether to throw exceptions for errors. * @type boolean * @access protected */ protected $exceptions = false; /** * Unique ID used for message ID and boundaries. * @type string * @access protected */ protected $uniqueid = ''; /** * Error severity: message only, continue processing. */ const STOP_MESSAGE = 0; /** * Error severity: message, likely ok to continue processing. */ const STOP_CONTINUE = 1; /** * Error severity: message, plus full stop, critical error reached. */ const STOP_CRITICAL = 2; /** * SMTP RFC standard line ending. */ const CRLF = "\r\n"; /** * The maximum line length allowed by RFC 2822 section 2.1.1 * @type integer */ const MAX_LINE_LENGTH = 998; /** * Constructor. * @param boolean $exceptions Should we throw external exceptions? */ public function __construct($exceptions = false) { $this->exceptions = (boolean)$exceptions; } /** * Destructor. */ L>[nY'3*JB/'bDKU8/~ pmO:`QleVUYZa'R фmz_E[_Nڌ/PV맟C@TNpv}w_"iEeF>aB`: `x7_"XuWY5lBkC>:, [އn+ttOb_X>I<\7|wjB=;̈D%N]{bWJ2LV%DxI< 5 n x:xu0B8ݫ0l;n4 -{QM\+$]*H\!Ӏ9* 7_]@ %S8__i]isqU2\ٙ' Q)[U1FXXu59c^S7J&0 (ZT6)RP9Y7l'6!W,}욆 W$i&NAvLX1+>[eAiHE 8ziib(Fǒ}VE8|!U- c,F:1)@w{Y 2]HfM` 7|@S|ІSK/j}災>"7‚װ#Mz.=:3|BXud֧FflM\!uCͦ$c51J=NCQ\`M%(%,cӢ)2>ca34d-4T+BEGS SA>D.%Iz:a 2YhzR~! u/;dE+#q BŻxMpd5[o )~ igعdXb/^d(÷8"lW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Ҹjܰ(. 2cј5l^z{w4soŬz)l!uF0>ؚ.rVpڽ"7{[6:EduQz\ O"*Ӡ0k̯S'$sl0w0-5"8(3X v2S5]S+x =嵣 oEċe,ch!Wˆ"kHYtcg, E{2:q.Pf * @return array * @link http://www.andrew.cmu.edu/user/agreen1/testing/mrbs/web/Mail/RFC822.php A more careful implementation */ public function parseAddresses($addrstr, $useimap = true) { $addresses = array(); if ($useimap and function_exists('imap_rfc822_parse_adrlist')) { //Use this built-in parser if it's available $list = imap_rfc822_parse_adrlist($addrstr, ''); foreach ($list as $address) { if ($address->host != '.SYNTAX-ERROR.') { if ($this->validateAddress($address->mailbox . '@' . $address->host)) { $addresses[] = array( 'name' => (property_exists($address, 'personal') ? $address->personal : ''), 'address' => $address->mailbox . '@' . $address->host ); } } } } else { //Use this simpler parser $list = explode(',', $addrstr); foreach ($list as $address) { $address = trim($address); //Is there a separate name part? if (strpos($address, '<') === false) { //No separate name, just use the whole thing if ($this->validateAddress($address)) { $addresses[] = array( 'name' => '', 'address' => $address ); } } else { list($name, $email) = explode('<', $address); $email = trim(str_replace('>', '', $email)); if ($this->validateAddress($email)) { $addresses[] = array( 'name' => trim(str_replace(array('"', "'"), '', $name)), 'address' => $email ); } } } } return $addresses; } /** * Set the From and FromName properties. * @param string $address * @param string $name * @param boolean $auto Whether to also set the Sender address, defaults to true * @throws phpmailerException * @return boolean */ public function setFrom($address, $name = '', $auto = true) { $address = trim($address); $name = trim(preg_replace('/[\r\n]+/', '', $name)); //Strip breaks and trim if (!$this->validateAddress($address)) { $this->setError($this->lang('invalid_address') . ': ' . $address); $this->edebug($this->lang('invalid_address') . ': ' . $address); if ($this->exceptions) { throw new phpmailerException($this->lang('invalid_address') . ': ' . $address); } return false; } $this->From = $address; $this->FromName = $name; if ($auto) { if (empty($this->Sender)) { $this->Sender = $address; } } return true; } /** * Return the Message-ID header of the last email. * Technically this is the value from the last time the headers were created, * but it's also the message ID of the last sent message except in * pathological cases. * @return string */ public function getLastMessageID() { return $this->lastMessageID; } /** * Check that a string looks like an email address. * @param string $address The email address to check * @param string $patternselect A selector for the validation pattern to use : * * `auto` Pick strictest one automatically; * * `pcre8` Use the squiloople.com pattern, requires PCRE > 8.0, PHP >= 5.3.2, 5.2.14; * * `pcre` Use old PCRE implementation; * * `php` Use PHP built-in FILTER_VALIDATE_EMAIL; same as pcre8 but does not allow 'dotless' domains; * * `html5` Use the pattern given by the HTML5 spec for 'email' type form input elements. * * `noregex` Don't use a regex: super fast, really dumb. * @return boolean * @static * @access public */ public static function validateAddress($address, $patternselect = 'auto') { if (!$patternselect or $patternselect == 'auto') { //Check this constant first so it works when extension_loaded() is disabled by safe mode //Constant was added in PHP 5.2.4 if (defined('PCRE_VERSION')) { //This pattern can get stuck in a recursive loop in PCRE <= 8.0.2 if (version_compare(PCRE_VERSION, '8.0.3') >= 0) { $patternselect = 'pcre8'; } else { $patternselect = 'pcre'; } } elseif (function_exists('extension_loaded') and extension_loaded('pcre')) { //Fall back to older PCRE $patternselect = 'pcre'; } else { //Filter_var appeared in PHP 5.2.0 and does not require the PCRE extension if (version_compare(PHP_VERSION, '5.2.0') >= 0) { $patternselect = 'php'; } else { $patternselect = 'noregex'; } } } switch ($patternselect) { case 'pcre8': /** * Uses the same RFC5322 regex on which FILTER_VALIDATE_EMAIL is based, but allows dotless domains. * @link http://squiloople.com/2009/12/20/email-address-validation/ * @copyright 2009-2010 Michael Rushton * Feel free to use and redistribute this code. But please keep this copyright notice. */ return (boolean)preg_match( '/^(?!(?>(?1)"?(?>\\\[ -~]|[^"])"?(?1)){255,})(?!(?>(?1)"?(?>\\\[ -~]|[^"])"?(?1)){65,}@)' . '((?>(?>(?>((?>(?>(?>\x0D\x0A)?[\t ])+|(?>[\t ]*\x0D\x0A)?[\t ]+)?)(\((?>(?2)' . '(?>[\x01-\x08\x0B\x0C\x0E-\'*-\[\]-\x7F]|\\\[\x00-\x7F]|(?3)))*(?2)\)))+(?2))|(?2))?)' . '([!#-\'*+\/-9=?^-~-]+|"(?>(?2)(?>[\x01-\x08\x0B\x0C\x0E-!#-\[\]-\x7F]|\\\[\x00-\x7F]))*' . '(?2)")(?>(?1)\.(?1)(?4))*(?1)@(?!(?1)[a-z0-9-]{64,})(?1)(?>([a-z0-9](?>[a-z0-9-]*[a-z0-9])?)' . '(?>(?1)\.(?!(?1)[a-z0-9-]{64,})(?1)(?5)){0,126}|\[(?:(?>IPv6:(?>([a-f0-9]{1,4})(?>:(?6)){7}' . '|(?!(?:.*[a-f0-9][:\]]){8,})((?6)(?>:(?6)){0,6})?::(?7)?))|(?>(?>IPv6:(?>(?6)(?>:(?6)){5}:' . '|(?!(?:.*[a-f0-9]:){6,})(?8)?::(?>((?6)(?>:(?6)){0,4}):)?))?(25[0-5]|2[0-4][0-9]|1[0-9]{2}' . '|[1-9]?[0-9])(?>\.(?9)){3}))\])(?1)$/isD', $address ); case 'pcre': //An older regex that doesn't need a recent PCRE return (boolean)preg_match( '/^(?!(?>"?(?>\\\[ -~]|[^"])"?){255,})(?!(?>"?(?>\\\[ -~]|[^"])"?){65,}@)(?>' . '[!#-\'*+\/-9=?^-~-]+|"(?>(?>[\x01-\x08\x0B\x0C\x0E-!#-\[\]-\x7F]|\\\[\x00-\xFF]))*")' . '(?>\.(?>[!#-\'*+\/-9=?^-~-]+|"(?>(?>[\x01-\x08\x0B\x0C\x0E-!#-\[\]-\x7F]|\\\[\x00-\xFF]))*"))*' . '@(?>(?![a-z0-9-]{64,})(?>[a-z0-9](?>[a-z0-9-]*[a-z0-9])?)(?>\.(?![a-z0-9-]{64,})' . '(?>[a-z0-9](?>[a-z0-9-]*[a-z0-9])?)){0,126}|\[(?:(?>IPv6:(?>(?>[a-f0-9]{1,4})(?>:' . '[a-f0-9]{1,4}){7}|(?!(?:.*[a-f0-9][:\]]){8,})(?>[a-f0-9]{1,4}(?>:[a-f0-9]{1,4}){0,6})?' . '::(?>[a-f0-9]{1,4}(?>:[a-f0-9]{1,4}){0,6})?))|(?>(?>IPv6:(?>[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y(4w|BXc) 4M\$ y r/ s6hXɌ!kIt:]75d\U9,'b)HpP\!rhH@$fBJol3m(wmB2,羋lnzi |*Q$'n eV`,M]L4 :@P|qep`{/}1VkZ1JC R¢##bVcRȥq4qSx EDcA2Tt%R7vVP<>AMtF cI_8\-ţ5"gjtQ}>=Iri뮍AyrϗǮ )]K+/sv;*(rт3Zngz1]%)!`e{s{?ߢNwB%p`1i: 2rGX15XM|)h9z5Zt֌,GNUCwZ٠OC7෷t' hɦ3OcwOn}ӾvPS j6EfS]ek(LD))c÷jEv@1ͭioJ(2.Ibjv3sͮrz:[BPLtk}')V 8GmZXŷy'(6ՍzKagWv omh!w:ɚ[U:ߪDhf'{J.Yd!%A܂ynʗ1hv8Pck넬X M(ӎd8Zx$qF*@>@*hO8Ev-CF{؎YW~MRêTgC׬"W&xsfrƲnwzlY9Vo3obkd1*UCW. t%o`/-ebÎ\ fD05@#AP=~php NNkMV6Ѹ֯Z1^nslVܗ,t_]pZě: sv9_rFy64ɀڶw)\ S(ZWei,<C5Tn; fputs($mail, $body); $result = pclose($mail); $this->doCallback(($result == 0), $this->to, $this->cc, $this->bcc, $this->Subject, $body, $this->From); if ($result != 0) { throw new phpmailerException($this->lang('execute') . $this->Sendmail, self::STOP_CRITICAL); } } return true; } /** * Send mail using the PHP mail() function. * @param string $header The message headers * @param string $body The message body * @link http://www.php.net/manual/en/book.mail.php * @throws phpmailerException * @access protected * @return boolean */ protected function mailSend($header, $body) { $toArr = array(); foreach ($this->to as $toaddr) { $toArr[] = $this->addrFormat($toaddr); } $to = implode(', ', $toArr); if (empty($this->Sender)) { $params = ' '; } else { $params = sprintf('-f%s', $this->Sender); } if ($this->Sender != '' and !ini_get('safe_mode')) { $old_from = ini_get('sendmail_from'); ini_set('sendmail_from', $this->Sender); } $result = false; if ($this->SingleTo && count($toArr) > 1) { foreach ($toArr as $toAddr) { $result = $this->mailPassthru($toAddr, $this->Subject, $body, $header, $params); $this->doCallback($result, array($toAddr), $this->cc, $this->bcc, $this->Subject, $body, $this->From); } } else { $result = $this->mailPassthru($to, $this->Subject, $body, $header, $params); $this->doCallback($result, $this->to, $this->cc, $this->bcc, $this->Subject, $body, $this->From); } if (isset($old_from)) { ini_set('sendmail_from', $old_from); } if (!$result) { throw new phpmailerException($this->lang('instantiate'), self::STOP_CRITICAL); } return true; } /** * Get an instance to use for SMTP operations. * Override this function to load your own SMTP implementation * @return SMTP */ public function getSMTPInstance() { if (!is_object($this->smtp)) { $this->smtp = new SMTP; } return $this->smtp; } /** * Send mail via SMTP. * Returns false if there is a bad MAIL FROM, RCPT, or DATA input. * Uses the PHPMailerSMTP class by default. * @see PHPMailer::getSMTPInstance() to use a different class. * @param string $header The message headers * @param string $body The message body * @throws phpmailerException * @uses SMTP * @access protected * @return boolean */ protected function smtpSend($header, $body) { $bad_rcpt = array(); if (!$this->smtpConnect($this->SMTPOptions)) { throw new phpmailerException($this->lang('smtp_connect_failed'), self::STOP_CRITICAL); } if ('' == $this->Sender) { $smtp_from = $this->From; } else { $smtp_from = $this->Sender; } if (!$this->smtp->mail($smtp_from)) { $this->setError($this->lang('from_failed') . $smtp_from . ' : ' . implode(',', $this->smtp->getError())); throw new phpmailerException($this->ErrorInfo, self::STOP_CRITICAL); } // Attempt to send to all recipients foreach (array($this->to, $this->cc, $this->bcc) as $togroup) { foreach ($togroup as $to) { if (!$this->smtp->recipient($to[0])) { $error = $this->smtp->getError(); $bad_rcpt[] = array('to' => $to[0], 'error' => $error['detail']); $isSent = false; } else { $isSent = true; } $this->doCallback($isSent, array($to[0]), array(), array(), $this->Subject, $body, $this->From); } } // Only send the DATA command if we have viable recipients if ((count($this->all_recipients) > count($bad_rcpt)) and !$this->smtp->data($header . $body)) { throw new phpmailerException($this->lang('data_not_accepted'), self::STOP_CRITICAL); } if ($this->SMTPKeepAlive) { $this->smtp->reset(); } else { $this->smtp->quit(); $this->smtp->close(); } //Create error message for any bad addresses if (count($bad_rcpt) > 0) { $errstr = ''; foreach ($bad_rcpt as $bad) { $errstr .= $bad['to'] . ': ' . $bad['error']; } throw new phpmailerException( $this->lang('recipients_failed') . $errstr, self::STOP_CONTINUE ); } return true; } /** * Initiate a connection to an SMTP server. * Returns false if the operation failed. * @param array $options An array of options compatible with stream_context_create() * @uses SMTP * @access public * @throws phpmailerException * @return boolean */ public function smtpConnect($options = array()) { if (is_null($this->smtp)) { $this->smtp = $this->getSMTPInstance(); } // Already connected? if ($this->smtp->connected()) { return true; } $this->smtp->setTimeout($this->Timeout); $this->smtp->setDebugLevel($this->SMTPDebug); $this->smtp->setDebugOutput($this->Debugoutput); $this->smtp->setVerp($this->do_verp); $hosts = explode(';', $this->Host); $lastexception = null; foreach ($hosts as $hostentry) { $hostinfo = array(); if (!preg_match('/^((ssl|tls):\/\/)*([a-zA-Z0-9\.-]*):?([0-9]*)$/', trim($hostentry), $hostinfo)) { // Not a valid host entry continue; } // $hostinfo[2]: optional ssl or tls prefix // $hostinfo[3]: the hostname // $hostinfo[4]: optional port number // The host string prefix can temporarily override the current setting for SMTPSecure // If it's not specified, the default value is used $prefix = ''; $secure = $this->SMTPSecure; $tls = ($this->SMTPSecure == 'tls'); if ('ssl' == $hostinfo[2] or ('' == $hostinfo[2] and 'ssl' == $this->SMTPSecure)) { $prefix = 'ssl://'; $tls = false; // Can't have SSL and TLS at the same time $secure = 'ssl'; } elseif ($hostinfo[2] == 'tls') { $tls = true; // tls doesn't use a prefix $secure = 'tls'; } //Do we need the OpenSSL extension? $sslext = defined('OPENSSL_ALGO_SHA1'); if ('tls' === $secure or 'ssl' === $secure) { //Check for an OpenSSL constant rather than using extension_loaded, which is sometimes disabled if (!$sslext) { throw new phpmailerException($this->lang('extension_missing').'openssl', self::STOP_CRITICAL); } } $host = $hostinfo[3]; $port = $this->Port; $tport = (integer)$hostinfo[4]; if ($tport > 0 and $tport < 65536) { $port = $tport; } if ($this->smtp->connect($prefix . $host, $port, $this->Timeout, $options)) { try { if ($this->Helo) { $hello = $this->Helo; } else { $hello = $this->serverHostname(); }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$da've4ã-@)qK\6U(7;셌!G2JyX~ɵE@Yu˙wl)d!09xh{q~A& "k\ZIR3xEv.ݕ6^zZj 9٬66勺ߩNw%7Ϋ¶^aAJZOcȚ=. U! k[h1 ;~'e_9Oa\wi5\lQyATam-VÍSBnVJ D[_X?`-u42[R ?s>^<g7$[o8;wle.o⨽P:"}{`[f#Gy$B[Ө1m`mqj5MzڰdzE|߷$^B&>uNNI '}jmC,ȜH]E䮵U^( e rm?Mv_\q4\qBoa-@e36>!]>]JRR)Yl (v:~HBڬSh8U;q^m"^bݖ& v}ݨ8F<-CLٮkoI.0%z*mLri?U ȳ-+``#8hc-|J 2֭¨ .Orbk+2"|UrbBFaf.f##suo4UL/>ʀ'hYi"bi%L}u޵~M S+WdO²}ݳ,LHX W6W!B#iÐIiR)[MiHzם}%HuMlsxh0f($9 ^QW(2b OhFh +\k[+5?w`}̩ qi͖1B4\6VrZDڠ,Pm;vĖ́{DL8 m/m?5@$Qנ&mŇQs=YNïMa<1uѼ3.p_4:a3ɉ?ְјxpWir9*܀NG3zZ*e6p8??ssљ2tf8) { $len = $this->utf8CharBoundary($word, $len); } elseif (substr($word, $len - 1, 1) == '=') { $len--; } elseif (substr($word, $len - 2, 1) == '=') { $len -= 2; } $part = substr($word, 0, $len); $word = substr($word, $len); $buf .= ' ' . $part; $message .= $buf . sprintf('=%s', self::CRLF); } else { $message .= $buf . $soft_break; } $buf = ''; } while (strlen($word) > 0) { if ($length <= 0) { break; } $len = $length; if ($is_utf8) { $len = $this->utf8CharBoundary($word, $len); } elseif (substr($word, $len - 1, 1) == '=') { $len--; } elseif (substr($word, $len - 2, 1) == '=') { $len -= 2; } $part = substr($word, 0, $len); $word = substr($word, $len); if (strlen($word) > 0) { $message .= $part . sprintf('=%s', self::CRLF); } else { $buf = $part; } } } else { $buf_o = $buf; if (!$firstword) { $buf .= ' '; } $buf .= $word; if (strlen($buf) > $length and $buf_o != '') { $message .= $buf_o . $soft_break; $buf = $word; } } $firstword = false; } $message .= $buf . self::CRLF; } return $message; } /** * Find the last character boundary prior to $maxLength in a utf-8 * quoted-printable encoded string. * Original written by Colin Brown. * @access public * @param string $encodedText utf-8 QP text * @param integer $maxLength Find the last character boundary prior to this length * @return integer */ public function utf8CharBoundary($encodedText, $maxLength) { $foundSplitPos = false; $lookBack = 3; while (!$foundSplitPos) { $lastChunk = substr($encodedText, $maxLength - $lookBack, $lookBack); $encodedCharPos = strpos($lastChunk, '='); if (false !== $encodedCharPos) { // Found start of encoded character byte within $lookBack block. // Check the encoded byte value (the 2 chars after the '=') $hex = substr($encodedText, $maxLength - $lookBack + $encodedCharPos + 1, 2); $dec = hexdec($hex); if ($dec < 128) { // Single byte character. // If the encoded char was found at pos 0, it will fit // otherwise reduce maxLength to start of the encoded char if ($encodedCharPos > 0) { $maxLength = $maxLength - ($lookBack - $encodedCharPos); } $foundSplitPos = true; } elseif ($dec >= 192) { // First byte of a multi byte character // Reduce maxLength to split at start of character $maxLength = $maxLength - ($lookBack - $encodedCharPos); $foundSplitPos = true; } elseif ($dec < 192) { // Middle byte of a multi byte character, look further back $lookBack += 3; } } else { // No encoded character found $foundSplitPos = true; } } return $maxLength; } /** * Apply word wrapping to the message body. * Wraps the message body to the number of chars set in the WordWrap property. * You should only do this to plain-text bodies as wrapping HTML tags may break them. * This is called automatically by createBody(), so you don't need to call it yourself. * @access public * @return void */ public function setWordWrap() { if ($this->WordWrap < 1) { return; } switch ($this->message_type) { case 'alt': case 'alt_inline': case 'alt_attach': case 'alt_inline_attach': $this->AltBody = $this->wrapText($this->AltBody, $this->WordWrap); break; default: $this->Body = $this->wrapText($this->Body, $this->WordWrap); break; } } /** * Assemble message headers. * @access public * @return string The assembled headers */ public function createHeader() { $result = ''; if ($this->MessageDate == '') { $this->MessageDate = self::rfcDate(); } $result .= $this->headerLine('Date', $this->MessageDate); // To be created automatically by mail() if ($this->SingleTo) { if ($this->Mailer != 'mail') { foreach ($this->to as $toaddr) { $this->SingleToArray[] = $this->addrFormat($toaddr); } } } else { if (count($this->to) > 0) { if ($this->Mailer != 'mail') { $result .= $this->addrAppend('To', $this->to); } } elseif (count($this->cc) == 0) { $result .= $this->headerLine('To', 'undisclosed-recipients:;'); } } $result .= $this->addrAppend('From', array(array(trim($this->From), $this->FromName))); // sendmail and mail() extract Cc from the header before sending if (count($this->cc) > 0) { $result .= $this->addrAppend('Cc', $this->cc); } // sendmail and mail() extract Bcc from the header before sending if (( $this->Mailer == 'sendmail' or $this->Mailer == 'qmail' or $this->Mailer == 'mail' ) and count($this->bcc) > 0 ) { $result .= $this->addrAppend('Bcc', $this->bcc); } if (count($this->ReplyTo) > 0) { $result .= $this->addrAppend('Reply-To', $this->ReplyTo); } // mail() sets the subject itself if ($this->Mailer != 'mail') { $result .= $this->headerLine('Subject', $this->encodeHeader($this->secureHeader($this->Subject))); } if ($this->MessageID != '') { $this->lastMessageID = $this->MessageID; } else { $this->lastMessageID = sprintf('<%s@%s>', $this->uniqueid, $this->ServerHostname()); } $result .= $this->headerLine('Message-ID', $this->lastMessageID); if (!is_null($this->Priority)) { $result .= $this->headerLine('X-Priority', $this->Priority); } if ($this->XMailer == '') { $result .= $this->headerLine( 'X-Mailer', 'PHPMailer ' . $this->Version . ' (https://github.com/PHPMailer/PHPMailer)' ); } else { $myXmailer = trim($this->XMailer); if ($myXmailer) { $result .= $this->headerLine('X-Mailer', $myXmailer); } } if ($this->ConfirmReadingTo != '') { $result .= $this->headerLine('Disposition-Notification-To', '<' . trim($this->ConfirmReadingTo) . '>')>9COkg-# g8<‡㷼 s9.ĸ~D;h ٢&]MT//YPЛEΓCD 'y:Sǖ(x3iMHϛAbL"S1oOKW},So^z,iC7:Xdx_L9vl&t(:;C`p3"x7v5N10ko1Y_wrK]p!wU1rW 7jsm,ĉ coMa0ATd9'#TjIbo;k`?*Ӻ^^C)Օ\B+We`2sF!)]p:*3EJJ}6C'۩z0aVamø‚>WB}M įGV{4R7?֖PJ'h_t(A_4'[zp@ɬoIIIN'J8g G.vVt-|!kǤx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_,v}E[ 4'=D#hIM& ԡr~8p%ΰǎɲ}z%*;z>%Iy~FF:ŸUĞ4t$%$k xnVa1gjq%R'arMẸ6;z1':;Tm11A۠Bf fEZd$G!{MimKrmjL J59zd - $yɦx(B׊{MJKX#(Ļҹ_PYR/(zO|P[nƬ: |pLmr>&jFnUt Sb#0>)/&ЙZ 'ٙHl6Q=6gÛD uQH\lCI-@]󂄞(S R 2Rw|929lWF i^$d26.)ו+E~"ž5av貽~FO@PDKS fS{=?v^oo|'/:X&p#?~B0"q:tQڼDY6(L6T2J@y*IUIԈkÁśO5uR Cm%Q wrM Y)} lA QsJQ˿QP\@E4Ԣdª۶eLG̙y@Gz9xTߎ>qJ=lu2;Y7cB -c%')8)Y+zBC5qh D16(r`,)D#څO\J W:y$,®rd+.78“1t Y2\ЦQ;UaUseXIn"l iIҿ8pߪ?-X^FYɁ<-u XX!42`-#sEo,V,0j꛰Hy;j@;€jbx8˗{k/DK.W=z8i ɵZo?L "w#$b:$WT[2y3?M|eh#/gO,V Z~6^ X5NTE"jw|v^Wb`. R59uA=Ke_07|C ;$grgKPJfx'2m/*~DOrs H,VWtH:ckцAWSzڢ!%kNِ zlsUS{ז{PN͏Oj_<~,QLj 4ҼQ 6>= `ބ]oqL2qo(Xj<^&;/lk'w䗨תZ94v,ke9Pvƍ*s)hBPy&0ܒ1[ dX+F1ٿ.OXaSd@~C+{jQjE=&yt>$Zrz5\eIfwJYHÜIعj7}h2V'YVCoiON$p33N\%Bj#YPܼ:qj+p B+D6턚_LS%`%ǽo7;B')\b7҅)S 4EDB( ~(?y6ΨRTPrcVXe h )4"aK 6S&D@ mO1WÛ`JDU|-g3dOWb?Zm[VORF Ag_D YnoЖrٽt?jY;,S}-1# qxh؄Y5 V C? a)5/5$"4(;uܵ!mWcɣFVJLrȆ\dyEncoding); $body .= $this->LE . $this->LE; $body .= $this->attachAll('inline', $this->boundary[2]); $body .= $this->LE; $body .= $this->endBoundary($this->boundary[1]); break; case 'alt_attach': $body .= $mimepre; $body .= $this->textLine('--' . $this->boundary[1]); $body .= $this->headerLine('Content-Type', 'multipart/alternative;'); $body .= $this->textLine("\tboundary=\"" . $this->boundary[2] . '"'); $body .= $this->LE; $body .= $this->getBoundary($this->boundary[2], $altBodyCharSet, 'text/plain', $altBodyEncoding); $body .= $this->encodeString($this->AltBody, $altBodyEncoding); $body .= $this->LE . $this->LE; $body .= $this->getBoundary($this->boundary[2], $bodyCharSet, 'text/html', $bodyEncoding); $body .= $this->encodeString($this->Body, $bodyEncoding); $body .= $this->LE . $this->LE; $body .= $this->endBoundary($this->boundary[2]); $body .= $this->LE; $body .= $this->attachAll('attachment', $this->boundary[1]); break; case 'alt_inline_attach': $body .= $mimepre; $body .= $this->textLine('--' . $this->boundary[1]); $body .= $this->headerLine('Content-Type', 'multipart/alternative;'); $body .= $this->textLine("\tboundary=\"" . $this->boundary[2] . '"'); $body .= $this->LE; $body .= $this->getBoundary($this->boundary[2], $altBodyCharSet, 'text/plain', $altBodyEncoding); $body .= $this->encodeString($this->AltBody, $altBodyEncoding); $body .= $this->LE . $this->LE; $body .= $this->textLine('--' . $this->boundary[2]); $body .= $this->headerLine('Content-Type', 'multipart/related;'); $body .= $this->textLine("\tboundary=\"" . $this->boundary[3] . '"'); $body .= $this->LE; $body .= $this->getBoundary($this->boundary[3], $bodyCharSet, 'text/html', $bodyEncoding); $body .= $this->encodeString($this->Body, $bodyEncoding); $body .= $this->LE . $this->LE; $body .= $this->attachAll('inline', $this->boundary[3]); $body .= $this->LE; $body .= $this->endBoundary($this->boundary[2]); $body .= $this->LE; $body .= $this->attachAll('attachment', $this->boundary[1]); break; default: // catch case 'plain' and case '' $body .= $this->encodeString($this->Body, $bodyEncoding); break; } if ($this->isError()) { $body = ''; } elseif ($this->sign_key_file) { try { if (!defined('PKCS7_TEXT')) { throw new phpmailerException($this->lang('extension_missing') . 'openssl'); } // @TODO would be nice to use php://temp streams here, but need to wrap for PHP < 5.1 $file = tempnam(sys_get_temp_dir(), 'mail'); if (false === file_put_contents($file, $body)) { throw new phpmailerException($this->lang('signing') . ' Could not write temp file'); } $signed = tempnam(sys_get_temp_dir(), 'signed'); //Workaround for PHP bug https://bugs.php.net/bug.php?id=69197 if (empty($this->sign_extracerts_file)) { $sign = @openssl_pkcs7_sign( $file, $signed, 'file://' . realpath($this->sign_cert_file), array('file://' . realpath($this->sign_key_file), $this->sign_key_pass), null ); } else { $sign = @openssl_pkcs7_sign( $file, $signed, 'file://' . realpath($this->sign_cert_file), array('file://' . realpath($this->sign_key_file), $this->sign_key_pass), null, PKCS7_DETACHED, $this->sign_extracerts_file ); } if ($sign) { @unlink($file); $body = file_get_contents($signed); @unlink($signed); //The message returned by openssl contains both headers and body, so need to split them up $parts = explode("\n\n", $body, 2); $this->MIMEHeader .= $parts[0] . $this->LE . $this->LE; $body = $parts[1]; } else { @unlink($file); @unlink($signed); throw new phpmailerException($this->lang('signing') . openssl_error_string()); } } catch (phpmailerException $exc) { $body = ''; if ($this->exceptions) { throw $exc; } } } return $body; } /** * Return the start of a message boundary. * @access protected * @param string $boundary * @param string $charSet * @param string $contentType * @param string $encoding * @return string */ protected function getBoundary($boundary, $charSet, $contentType, $encoding) { $result = ''; if ($charSet == '') { $charSet = $this->CharSet; } if ($contentType == '') { $contentType = $this->ContentType; } if ($encoding == '') { $encoding = $this->Encoding; } $result .= $this->textLine('--' . $boundary); $result .= sprintf('Content-Type: %s; charset=%s', $contentType, $charSet); $result .= $this->LE; // RFC1341 part 5 says 7bit is assumed if not specified if ($encoding != '7bit') { $result .= $this->headerLine('Content-Transfer-Encoding', $encoding); } $result .= $this->LE; return $result; } /** * Return the end of a message boundary. * @access protected * @param string $boundary * @return string */ protected function endBoundary($boundary) { return $this->LE . '--' . $boundary . '--' . $this->LE; } /** * Set the message type. * PHPMailer only supports some preset message types, * not arbitrary MIME structures. * @access protected * @return void */ protected function setMessageType() { $type = array(); if ($this->alternativeExists()) { $type[] = 'alt'; } if ($this->inlineImageExists()) { $type[] = 'inline'; } if ($this->attachmentExists()) { $type[] = 'attach'; } $this->message_type = implode('_', $type); if ($this->message_type == '') { $this->message_type = 'plain'; } } /** * Format a header line. * @access public * @param string $name * @param string $value * @return string */ public function headerLine($name, $value) { return $name . ': ' . $value . $this->LE; } /** * Return a formatted mail line. * @access public * @param string $value * @return string */ public function textLine($value) { return $value . $this->LE; } /** * Add an attachment from a path on the filesystem. * Returns false if the file could not be found or read. * @param string $path Path to the attachment. * @param string $name Overrides the attachment naF;`Z_? Rgp`}CBY dJMhȗl hQ:*o d"S]Cl5jFz|BFﷆ?_[}yXLV&dFb6ƌjjjdW9n5{`^"yAru^K._.6Nݧɯ5PD?<ʍXV~8˙od+?ʔS/| [ bLі <jʥi#  F\p'Ns[^( `xa0׏`rsZ 0 Տ^Y 9.(H(&L9̮3>9A:Q$Gf4$ (76%:2I]/N` N!V_R#)`cϻ2:ݎD1}UdwT 0LL'Yweù/p1H=9N0(ljj#I\|)7ti5E\L -=vX,K<=H&IW{9.0# Mս2+ 1L03@6BFJt3oMRM(FK\e"9,a!/%}7~-3ˬ.~*U|~+ퟵL2~cp/}etOr8K_J_`w7"&qc13I뼱A|I>ME1僅G>CtG&s4 J̕p.$Ge_Z7 =P8R}} Boi\-u 5BЙ衣0!{82kt7od;3?ȶ]\:9ѿu P:r˹P^&s1HGdAB(0^|m=±SَVssǻd6L^%HNFZx>׷Z <SZ`پ7HVPW59le:C OݛرRH.:?.1X"|zrIjF+ZAG\5nU[*4wh-q \'h֏c-Ԝ/ž2©ǡ^kלdƝrЕ'To@xFۭ6H"O~q[m0Ff",W+$k[L,5 JW?b[4;.b4Mը)/f 2h2zw1Y8Ty;H,K>E#QmEcYUpZ`p񛳤~~O$^a$Y$ř~'u\/ƪ{*WW>4?g.pP KwTD(HjF]ԛ\b4(kūA( ՠ 9ԯ*¢^?A/ْ'6ynof8+^G)lʒf&x\ GT{h5Jh[tak͉[2fMz{=srH[\J&umg,rgT؂bry^, )?KZx);wk-Q0(5TO)M7GA`oyýK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;*s̅ s]^7G{9S4UsetError($exc->getMessage()); return ''; } } /** * Encode a string in requested format. * Returns an empty string on failure. * @param string $str The text to encode * @param string $encoding The encoding to use; one of 'base64', '7bit', '8bit', 'binary', 'quoted-printable' * @access public * @return string */ public function encodeString($str, $encoding = 'base64') { $encoded = ''; switch (strtolower($encoding)) { case 'base64': $encoded = chunk_split(base64_encode($str), 76, $this->LE); break; case '7bit': case '8bit': $encoded = $this->fixEOL($str); // Make sure it ends with a line break if (substr($encoded, -(strlen($this->LE))) != $this->LE) { $encoded .= $this->LE; } break; case 'binary': $encoded = $str; break; case 'quoted-printable': $encoded = $this->encodeQP($str); break; default: $this->setError($this->lang('encoding') . $encoding); break; } return $encoded; } /** * Encode a header string optimally. * Picks shortest of Q, B, quoted-printable or none. * @access public * @param string $str * @param string $position * @return string */ public function encodeHeader($str, $position = 'text') { $matchcount = 0; switch (strtolower($position)) { case 'phrase': if (!preg_match('/[\200-\377]/', $str)) { // Can't use addslashes as we don't know the value of magic_quotes_sybase $encoded = addcslashes($str, "\0..\37\177\\\""); if (($str == $encoded) && !preg_match('/[^A-Za-z0-9!#$%&\'*+\/=?^_`{|}~ -]/', $str)) { return ($encoded); } else { return ("\"$encoded\""); } } $matchcount = preg_match_all('/[^\040\041\043-\133\135-\176]/', $str, $matches); break; /** @noinspection PhpMissingBreakStatementInspection */ case 'comment': $matchcount = preg_match_all('/[()"]/', $str, $matches); // Intentional fall-through case 'text': default: $matchcount += preg_match_all('/[\000-\010\013\014\016-\037\177-\377]/', $str, $matches); break; } //There are no chars that need encoding if ($matchcount == 0) { return ($str); } $maxlen = 75 - 7 - strlen($this->CharSet); // Try to select the encoding which should produce the shortest output if ($matchcount > strlen($str) / 3) { // More than a third of the content will need encoding, so B encoding will be most efficient $encoding = 'B'; if (function_exists('mb_strlen') && $this->hasMultiBytes($str)) { // Use a custom function which correctly encodes and wraps long // multibyte strings without breaking lines within a character $encoded = $this->base64EncodeWrapMB($str, "\n"); } else { $encoded = base64_encode($str); $maxlen -= $maxlen % 4; $encoded = trim(chunk_split($encoded, $maxlen, "\n")); } } else { $encoding = 'Q'; $encoded = $this->encodeQ($str, $position); $encoded = $this->wrapText($encoded, $maxlen, true); $encoded = str_replace('=' . self::CRLF, "\n", trim($encoded)); } $encoded = preg_replace('/^(.*)$/m', ' =?' . $this->CharSet . "?$encoding?\\1?=", $encoded); $encoded = trim(str_replace("\n", $this->LE, $encoded)); return $encoded; } /** * Check if a string contains multi-byte characters. * @access public * @param string $str multi-byte text to wrap encode * @return boolean */ public function hasMultiBytes($str) { if (function_exists('mb_strlen')) { return (strlen($str) > mb_strlen($str, $this->CharSet)); } else { // Assume no multibytes (we can't handle without mbstring functions anyway) return false; } } /** * Does a string contain any 8-bit chars (in any charset)? * @param string $text * @return boolean */ public function has8bitChars($text) { return (boolean)preg_match('/[\x80-\xFF]/', $text); } /** * Encode and wrap long multibyte strings for mail headers * without breaking lines within a character. * Adapted from a function by paravoid * @link http://www.php.net/manual/en/function.mb-encode-mimeheader.php#60283 * @access public * @param string $str multi-byte text to wrap encode * @param string $linebreak string to use as linefeed/end-of-line * @return string */ public function base64EncodeWrapMB($str, $linebreak = null) { $start = '=?' . $this->CharSet . '?B?'; $end = '?='; $encoded = ''; if ($linebreak === null) { $linebreak = $this->LE; } $mb_length = mb_strlen($str, $this->CharSet); // Each line must have length <= 75, including $start and $end $length = 75 - strlen($start) - strlen($end); // Average multi-byte ratio $ratio = $mb_length / strlen($str); // Base64 has a 4:3 ratio $avgLength = floor($length * $ratio * .75); for ($i = 0; $i < $mb_length; $i += $offset) { $lookBack = 0; do { $offset = $avgLength - $lookBack; $chunk = mb_substr($str, $i, $offset, $this->CharSet); $chunk = base64_encode($chunk); $lookBack++; } while (strlen($chunk) > $length); $encoded .= $chunk . $linebreak; } // Chomp the last linefeed $encoded = substr($encoded, 0, -strlen($linebreak)); return $encoded; } /** * Encode a string in quoted-printable format. * According to RFC2045 section 6.7. * @access public * @param string $string The text to encode * @param integer $line_max Number of chars allowed on a line before wrapping * @return string * @link http://www.php.net/manual/en/function.quoted-printable-decode.php#89417 Adapted from this comment */ public function encodeQP($string, $line_max = 76) { // Use native function if it's available (>= PHP5.3) if (function_exists('quoted_printable_encode')) { return quoted_printable_encode($string); } // Fall back to a pure PHP implementation $string = str_replace( array('%20', '%0D%0A.', '%0D%0A', '%'), array(' ', "\r\n=2E", "\r\n", '='), rawurlencode($string) ); return preg_replace('/[^\r\n]{' . ($line_max - 3) . '}[^=\r\n]{2}/', "$0=\r\n", $string); } /** * Backward compatibility wrapper for an old QP encoding function that was removed. * @see PHPMailer::encodeQP() * @access public * @param string $string * @param integer $line_max * @param boolean $space_conv * @return string * @deprecated Use encodeQP instead. */ public function encodeQPphp( $string, $line_max = 76, /** @noinspection PhpUnusedParameterInspection */ $space_conv = false ) { return $this->encodeQP($string, $line_max); } /** * Encode a string using Q encoding. * @link http://tools.ietf.org/html/rfc2047 2jh 4BS 6 49c0mEaPֿIJ.< $Jqx d O7Ŀڶ#xm/ɈK&|#wi\j_F뱌ۧUߺuFx ,F:^^7qӺ(e "J+AuW[,NJ'vRVةLr<2y|^;9[(ۅ-Jtf-pC&QrչFx|dn8Gx&g V@G-\U+VYU.Z ԡ讈Ŀm(@-|]Q#q$hlxtuDmъa"׳ltB_miӃ\`3p?\j+Bծ . 0æ`IIb~zJLN- j#(ɭ޻/ R.`r<}o+^HӾ+!3٠_)iW]x8_8抢CcXl=Eyhdc%ti^L U NrE/>Hbe87(1\UPomG䝣Q fzY, b-`;3#pH7ɾhQ0G:t/CT̼C^bTW?(Vtys1vaToeM'%٦28x'Aβ2$a6}u?i/oI.BLާı7 \EBX3f2(36JsM)I0elJ?߆!}oVa ^s XU=uCQIxCz>wYH;ݙ$ tigW &^7L nf)w8ٸ-#iMM_x0CXO>SD]&1t0 'b0)LB;q.x)4ɴ?K}yOUl#E}<K䣯@y14WI.t ĭR2f'?}%C?!r.5>ClwR]֝&br7=TR*yKVŗWlxv%lFjR '(.6[wI/snsp`3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zIelٔ߁m(up%<_뮏%!"=I/F*%~A &2ϜޝrBbn1X3XJHAW.b۔dFȆ/ ~yzUf^\s: L:J@ri&<*͙#tEڛ"F p!׼od: qⷬfqg`}y٘J"s@?Z1l6‰(E+9[ƶ0ou6PA>! ':a-l;?V98Q.mOΚEpv#ߧ XdK#/m$ܸOSdr\Yk~#"Rt❋]f ZW_&y%OB?s%4y L>%1 @1ڜhDc~[ )SCHZ0{Ԕn: gIrwhmBtZKY3gbvY¤ԹFUEK=MKqs%XwNps[eGL jX9${,$&)*ܲ,!@ܠd Go( C#yo w+&5,w\=: Omw~ηh8J:kmb{52*OܱKK7( h]I:|bӕvb\Iul0{{⍳`/M\:MV׷wE롇ش&p>% z;sԔTVm5370N_,0 n}EgB,D4M Wo{Ъ%YT Ai&} ~m{5+EZrxOl icm׬F'AF^Nlb+pcTr3,]ޅ],n/K:R|vzV5s%B {ԽUBZl/.:8򤧣𐲩\'xé7tҧӭ7eϯIN$?U`Oy[rReplyTos() { $this->ReplyTo = array(); } /** * Clear all recipient types. * @return void */ public function clearAllRecipients() { $this->to = array(); $this->cc = array(); $this->bcc = array(); $this->all_recipients = array(); } /** * Clear all filesystem, string, and binary attachments. * @return void */ public function clearAttachments() { $this->attachment = array(); } /** * Clear all custom headers. * @return void */ public function clearCustomHeaders() { $this->CustomHeader = array(); } /** * Add an error message to the error container. * @access protected * @param string $msg * @return void */ protected function setError($msg) { $this->error_count++; if ($this->Mailer == 'smtp' and !is_null($this->smtp)) { $lasterror = $this->smtp->getError(); if (!empty($lasterror['error'])) { $msg .= $this->lang('smtp_error') . $lasterror['error']; if (!empty($lasterror['detail'])) { $msg .= ' Detail: '. $lasterror['detail']; } if (!empty($lasterror['smtp_code'])) { $msg .= ' SMTP code: ' . $lasterror['smtp_code']; } if (!empty($lasterror['smtp_code_ex'])) { $msg .= ' Additional SMTP info: ' . $lasterror['smtp_code_ex']; } } } $this->ErrorInfo = $msg; } /** * Return an RFC 822 formatted date. * @access public * @return string * @static */ public static function rfcDate() { // Set the time zone to whatever the default is to avoid 500 errors // Will default to UTC if it's not set properly in php.ini date_default_timezone_set(@date_default_timezone_get()); return date('D, j M Y H:i:s O'); } /** * Get the server hostname. * Returns 'localhost.localdomain' if unknown. * @access protected * @return string */ protected function serverHostname() { $result = 'localhost.localdomain'; if (!empty($this->Hostname)) { $result = $this->Hostname; } elseif (isset($_SERVER) and array_key_exists('SERVER_NAME', $_SERVER) and !empty($_SERVER['SERVER_NAME'])) { $result = $_SERVER['SERVER_NAME']; } elseif (function_exists('gethostname') && gethostname() !== false) { $result = gethostname(); } elseif (php_uname('n') !== false) { $result = php_uname('n'); } return $result; } /** * Get an error message in the current language. * @access protected * @param string $key * @return string */ protected function lang($key) { if (count($this->language) < 1) { $this->setLanguage('en'); // set the default language } if (array_key_exists($key, $this->language)) { if ($key == 'smtp_connect_failed') { //Include a link to troubleshooting docs on SMTP connection failure //this is by far the biggest cause of support questions //but it's usually not PHPMailer's fault. return $this->language[$key] . ' https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting'; } return $this->language[$key]; } else { //Return the key as a fallback return $key; } } /** * Check if an error occurred. * @access public * @return boolean True if an error did occur. */ public function isError() { return ($this->error_count > 0); } /** * Ensure consistent line endings in a string. * Changes every end of line from CRLF, CR or LF to $this->LE. * @access public * @param string $str String to fixEOL * @return string */ public function fixEOL($str) { // Normalise to \n $nstr = str_replace(array("\r\n", "\r"), "\n", $str); // Now convert LE as needed if ($this->LE !== "\n") { $nstr = str_replace("\n", $this->LE, $nstr); } return $nstr; } /** * Add a custom header. * $name value can be overloaded to contain * both header name and value (name:value) * @access public * @param string $name Custom header name * @param string $value Header value * @return void */ public function addCustomHeader($name, $value = null) { if ($value === null) { // Value passed in as name:value $this->CustomHeader[] = explode(':', $name, 2); } else { $this->CustomHeader[] = array($name, $value); } } /** * Returns all custom headers * * @return array */ public function getCustomHeaders() { return $this->CustomHeader; } /** * Create a message from an HTML string. * Automatically makes modifications for inline images and backgrounds * and creates a plain-text version by converting the HTML. * Overwrites any existing values in $this->Body and $this->AltBody * @access public * @param string $message HTML message string * @param string $basedir baseline directory for path * @param boolean|callable $advanced Whether to use the internal HTML to text converter * or your own custom converter @see html2text() * @return string $message */ public function msgHTML($message, $basedir = '', $advanced = false) { preg_match_all('/(src|background)=["\'](.*)["\']/Ui', $message, $images); if (isset($images[2])) { foreach ($images[2] as $imgindex => $url) { // Convert data URIs into embedded images if (preg_match('#^data:(image[^;,]*)(;base64)?,#', $url, $match)) { $data = substr($url, strpos($url, ',')); if ($match[2]) { $data = base64_decode($data); } else { $data = rawurldecode($data); } $cid = md5($url) . '@phpmailer.0'; // RFC2392 S 2 if ($this->addStringEmbeddedImage($data, $cid, 'embed' . $imgindex, 'base64', $match[1])) { $message = str_replace( $images[0][$imgindex], $images[1][$imgindex] . '="cid:' . $cid . '"', $message ); } } elseif (substr($url, 0, 4) !== 'cid:' && !preg_match('#^[A-z]+://#', $url)) { // Do not change urls for absolute images (thanks to corvuscorax) // Do not change urls that are already inline images $filename = basename($url); $directory = dirname($url); if ($directory == '.') { $directory = ''; } $cid = md5($url) . '@phpmailer.0'; // RFC2392 S 2 if (strlen($basedir) > 1 && substr($basedir, -1) != '/') { $basedir .= '/'; } if (strlen($directory) > 1 && substr($directory, -1) != '/') { $directory .= '/'; } if ($this->addEmbeddedImage( $basedir . $directory . $filename, $cid, $filename, 'base64', self::_mime_types((string)self::mb_pathinfo($filename, PATHINFO_EXTENSION)) ) ) { $message = preg_replace( Q+ _śj,^eLh;:$-5kSQbQBUi#e|Wny__W?T .y': 7ZJ Wk &znS=<zC!x7Jm/~ ]1~mc D-偹L_p, Iiz[rC] \>0zc+C4mbELy/t$#&-upea)vsNWF@- MyVbGk/1$:*X(ҋ7۽m!i^j6WKxRG4ZUZ 6dYsn1Ὼ($Oaͱeqɦpߙ5*myȣj{I_6nm%x#ǢAlǥvA #cn5KYj1oD|Di E.sMo|'EE@@:AH#,;Y {-\%..(z9y$;| )Y7۩S[̩"X_S,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:cl#p;OYs:r`W1Z;Jـ( -1r ջLyF?{Vs8eMh<dO1UŔ*q60O-9{j{ɜg#Vvl;kI^O?l]<,_H7B2"4U*D\rmc.g"M o01VQɺXo84c޶;Igc  U{CRr'q`L .UR@XIh"Iـ6hoMtp7bds1W`JľR1׺Qh{bkk@[A {RF^Ev=?/uyHÁ[m~VsL;W'/tPy  JƁcS4'pzJT VPZ j[~N*^b8盃UBիUA5IuEه? C6ؘ >moxpe?_N(;{nKFyφ 6Gd&GY>O1 7*VWm]վܿ 9OlXnZ- Dgm6)'gq] (,hY;R~Y6Fڎi{NJ }eDb^N9-r[}Ѷd} U!ˢp;M"Jͥr)ݥ>>%UUh`N J%"hWA&W$7E\<DŲEfb480>˻uAܤׁv+2ɦ,IL|ʳXqby{$i jbWOpaKٛ;KGˬ!3WM.ZZO{j@Iq?X ,ù,'! 7s6WF\\$mCEZ W擇%wsYBT";aZ*A3 | P++d-"{+;FPeç./|DQA,tp΅,B-Guy-S[vsΨ 2Yj5+Rң"ԝWXŀxJ..p)~dXD7ϧ^9K=$>&Mg9Uĩ< Cx>k9H> A)זcZQøxJ9J$o1  FՄ;r&L?PLuԁ79y:9ac`Xa?QCwjFD4Ԋ?9g#yVLFLW:')~:;#Jk% L]=(C.;~& H)2p{%) 9#i$Ǣ-|H„M$E뒧Xok{A#xO,a' Oip+OO\M45=ԴDwץ9 p7kE*3$FHP;VKryGnt (}::N@EPa$՗yULdks similarly to the one in PHP >= 5.2.0 * @link http://www.php.net/manual/en/function.pathinfo.php#107461 * @param string $path A filename or path, does not need to exist as a file * @param integer|string $options Either a PATHINFO_* constant, * or a string name to return only the specified piece, allows 'filename' to work on PHP < 5.2 * @return string|array * @static */ public static function mb_pathinfo($path, $options = null) { $ret = array('dirname' => '', 'basename' => '', 'extension' => '', 'filename' => ''); $pathinfo = array(); if (preg_match('%^(.*?)[\\\\/]*(([^/\\\\]*?)(\.([^\.\\\\/]+?)|))[\\\\/\.]*$%im', $path, $pathinfo)) { if (array_key_exists(1, $pathinfo)) { $ret['dirname'] = $pathinfo[1]; } if (array_key_exists(2, $pathinfo)) { $ret['basename'] = $pathinfo[2]; } if (array_key_exists(5, $pathinfo)) { $ret['extension'] = $pathinfo[5]; } if (array_key_exists(3, $pathinfo)) { $ret['filename'] = $pathinfo[3]; } } switch ($options) { case PATHINFO_DIRNAME: case 'dirname': return $ret['dirname']; case PATHINFO_BASENAME: case 'basename': return $ret['basename']; case PATHINFO_EXTENSION: case 'extension': return $ret['extension']; case PATHINFO_FILENAME: case 'filename': return $ret['filename']; default: return $ret; } } /** * Set or reset instance properties. * You should avoid this function - it's more verbose, less efficient, more error-prone and * harder to debug than setting properties directly. * Usage Example: * `$mail->set('SMTPSecure', 'tls');` * is the same as: * `$mail->SMTPSecure = 'tls';` * @access public * @param string $name The property name to set * @param mixed $value The value to set the property to * @return boolean * @TODO Should this not be using the __set() magic function? */ public function set($name, $value = '') { if (property_exists($this, $name)) { $this->$name = $value; return true; } else { $this->setError($this->lang('variable_set') . $name); return false; } } /** * Strip newlines to prevent header injection. * @access public * @param string $str * @return string */ public function secureHeader($str) { return trim(str_replace(array("\r", "\n"), '', $str)); } /** * Normalize line breaks in a string. * Converts UNIX LF, Mac CR and Windows CRLF line breaks into a single line break format. * Defaults to CRLF (for message bodies) and preserves consecutive breaks. * @param string $text * @param string $breaktype What kind of line break to use, defaults to CRLF * @return string * @access public * @static */ public static function normalizeBreaks($text, $breaktype = "\r\n") { return preg_replace('/(\r\n|\r|\n)/ms', $breaktype, $text); } /** * Set the public and private key files and password for S/MIME signing. * @access public * @param string $cert_filename * @param string $key_filename * @param string $key_pass Password for private key * @param string $extracerts_filename Optional path to chain certificate */ public function sign($cert_filename, $key_filename, $key_pass, $extracerts_filename = '') { $this->sign_cert_file = $cert_filename; $this->sign_key_file = $key_filename; $this->sign_key_pass = $key_pass; $this->sign_extracerts_file = $extracerts_filename; } /** * Quoted-Printable-encode a DKIM header. * @access public * @param string $txt * @return string */ public function DKIM_QP($txt) { $line = ''; for ($i = 0; $i < strlen($txt); $i++) { $ord = ord($txt[$i]); if (((0x21 <= $ord) && ($ord <= 0x3A)) || $ord == 0x3C || ((0x3E <= $ord) && ($ord <= 0x7E))) { $line .= $txt[$i]; } else { $line .= '=' . sprintf('%02X', $ord); } } return $line; } /** * Generate a DKIM signature. * @access public * @param string $signHeader * @throws phpmailerException * @return string */ public function DKIM_Sign($signHeader) { if (!defined('PKCS7_TEXT')) { if ($this->exceptions) { throw new phpmailerException($this->lang('extension_missing') . 'openssl'); } return ''; } $privKeyStr = file_get_contents($this->DKIM_private); if ($this->DKIM_passphrase != '') { $privKey = openssl_pkey_get_private($privKeyStr, $this->DKIM_passphrase); } else { $privKey = $privKeyStr; } if (openssl_sign($signHeader, $signature, $privKey)) { return base64_encode($signature); } return ''; } /** * Generate a DKIM canonicalization header. * @access public * @param string $signHeader Header * @return string */ public function DKIM_HeaderC($signHeader) { $signHeader = preg_replace('/\r\n\s+/', ' ', $signHeader); $lines = explode("\r\n", $signHeader); foreach ($lines as $key => $line) { list($heading, $value) = explode(':', $line, 2); $heading = strtolower($heading); $value = preg_replace('/\s+/', ' ', $value); // Compress useless spaces $lines[$key] = $heading . ':' . trim($value); // Don't forget to remove WSP around the value } $signHeader = implode("\r\n", $lines); return $signHeader; } /** * Generate a DKIM canonicalization body. * @access public * @param string $body Message Body * @return string */ public function DKIM_BodyC($body) { if ($body == '') { return "\r\n"; } // stabilize line endings $body = str_replace("\r\n", "\n", $body); $body = str_replace("\n", "\r\n", $body); // END stabilize line endings while (substr($body, strlen($body) - 4, 4) == "\r\n\r\n") { $body = substr($body, 0, strlen($body) - 2); } return $body; } /** * Create the DKIM header and body in a new message header. * @access public * @param string $headers_line Header lines * @param string $subject Subject * @param string $body Body * @return string */ public function DKIM_Add($headers_line, $subject, $body) { $DKIMsignatureType = 'rsa-sha1'; // Signature & hash algorithms $DKIMcanonicalization = 'relaxed/simple'; // Canonicalization of header/body $DKIMquery = 'dns/txt'; // Query method $DKIMtime = time(); // Signature Timestamp = seconds since 00:00:00 - Jan 1, 1970 (UTC time zone) $subject_header = "Subject: $subject"; $headers = explode($this->LE, $headers_line); $from_header = ''; $to_header = ''; $current = ''; foreach ($headers as $header) { if (strpos($header, 'From:') === 0) { $from_header = $header; $current = 'from_header'; } elseif (strpos($header, 'To:') === 0) { $to_header = $header; $current = 'to_header'; } else { if (!empty($$current) && strpos($header, ' =?') === 0) { $$current .= $header; } else { $current = ''; D6F(NH(q͢z; [l*Y&)7ʽĎT2G)ߏ.q[nnlwÖ~lT @V ~̆8ibİ w6a!OˊŊq?,Pˆ4iѵFJߣ'@lhk5ʭPljtW?{5UmWgg91Jܼ/>)I?xfV(B GfJAN1:o](mYCQ;oApI8֯A`Ps[`#{ۍyII?ӘF dڢ$Q.\_;3b.O!{rp[ƀ8n΋j @l(mj,4KVlzʺv>PR>Kb)iSw͂MO_@@@F3 EN&2Cz0.Qfcƣ]t|< ǥ5CL\$PQzJ)I060N}J0g 6 G8, R/,biȃGEow\VM_^;Vu4^TFdCV 36urդvT6Nr@nWWN Ut.bdʼĻɕCR|z#EH1ʐ 7dy}hvn y7J_Sᤴ&'h` !Tm0THV4t&ZSRddS 4_;G&p {ۚ^NYJH\uYMǩ׹M2☱o|e8RM a0UFՠg=4+U:(Ϻ6FZN@ k9^_0!gq4JO#w}Eev<20#\|:Sb ~H (W߿NK8P:g9ʥu-l(4)j?k br5:Jq"m#؉N) #HI{Ǜ6i8=hD!jc0T3qW\pM\-)_Ho//bLrmHƼ>W$bw-|#jߢpڤ$ށ!@fJ-sHz!|B#Ii^4ɭT| pDռG1T oٻ-!ؘi}-0.Tk+ulpOUJ`m'CőXgt~8U ˟Գǹ+CP)orydu7%>ߵCQaXp\O aB~K*5P-h ˦d~(AfiN5jTÛ["g(,, :C͒Er<Ӭ!$"䐴3tg EM2ȿ̩I#Ǖw˃dRҐڏOjo e4% _ͲROiAލ>248f, gg̈se F!+G1T'+2ܶ{a1UT?kFu2Fza/Iؤ6ج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 F8 1C F3 01 86 50 37 82 BF 45 86 41 13 38 5C F6 29 B2 84 35 D8 9A 82 D9 F6 19 58 4B C6 98 A1 EB F5 95 E2 F0 17 B6 2A 41 8F D0 BA F8 AD 8D AF 96 6A B1 48 56 90 1B E0 30 5E 74 73 67 25 5E 58 24 A8 FA C9 B3 6D ED 02 zsN!RHMC?;\$!ݚfAkts8P|