281         $this->setLanguage(
"en", 
$myConfig->getConfigParam(
'sShopDir') . 
"/core/phpmailer/language/");
 
  299         if (defined(
'OXID_PHP_UNIT')) {
 
  300             if (substr($sMethod, 0, 4) == 
"UNIT") {
 
  301                 $sMethod = str_replace(
"UNIT", 
"_", $sMethod);
 
  303             if (method_exists($this, $sMethod)) {
 
  304                 return call_user_func_array(array(& $this, $sMethod), $aArgs);
 
  308         throw new oxSystemComponentException(
"Function '$sMethod' does not exist or is not accessible! (" . get_class($this) . 
")" . PHP_EOL);
 
  318         if ($this->_oConfig == null) {
 
  322         return $this->_oConfig;
 
  332         $this->_oConfig = $oConfig;
 
  343         if ($this->_oSmarty === null) {
 
  348         $this->_oSmarty->assign(
"oEmailView", $this);
 
  419         if (
getStr()->preg_match(
'@^([0-9a-z]+://)?(.*)$@i', $sUrl, $aMatch)) {
 
  421                 if (($aMatch[1] == 
'ssl://') || ($aMatch[1] == 
'tls://')) {
 
  422                     $this->
set(
"SMTPSecure", substr($aMatch[1], 0, 3));
 
  424                     $sProtocol = $aMatch[1];
 
  427             $sSmtpHost = $aMatch[2];
 
  430         return $sProtocol . $sSmtpHost;
 
  443         $oShop = ($oShop) ? $oShop : $this->
_getShop();
 
  456         if ($oShop->oxshops__oxsmtpuser->value) {
 
  457             $this->
_setSmtpAuthInfo($oShop->oxshops__oxsmtpuser->value, $oShop->oxshops__oxsmtppwd->value);
 
  460         if (
$myConfig->getConfigParam(
'iDebug') == 6) {
 
  478             if (
getStr()->preg_match(
'@^(.*?)(:([0-9]+))?$@i', $sSmtpHost, $aMatch)) {
 
  479                 $sSmtpHost = $aMatch[1];
 
  480                 $sSmtpPort = (int) $aMatch[3];
 
  485             if ($blIsSmtp = (
bool) ($rHandle = @fsockopen($sSmtpHost, $sSmtpPort, $iErrNo, $sErrStr, 30))) {
 
  513         $oUser = $oOrder->getOrderUser();
 
  520         if (
$myConfig->getConfigParam(
"bl_perfLoadReviews")) {
 
  527         $this->
setBody($oSmarty->fetch($this->_sOrderUserTemplate));
 
  528         $this->
setAltBody($oSmarty->fetch($this->_sOrderUserPlainTemplate));
 
  531         if ($sSubject === null) {
 
  532             if ($oSmarty->template_exists($this->_sOrderUserSubjectTemplate)) {
 
  533                 $sSubject = $oSmarty->fetch($this->_sOrderUserSubjectTemplate);
 
  535                 $sSubject = $oShop->oxshops__oxordersubject->getRawValue() . 
" (#" . $oOrder->oxorder__oxordernr->value . 
")";
 
  541         $sFullName = $oUser->oxuser__oxfname->getRawValue() . 
" " . $oUser->oxuser__oxlname->getRawValue();
 
  543         $this->
setRecipient($oUser->oxuser__oxusername->value, $sFullName);
 
  544         $this->
setReplyTo($oShop->oxshops__oxorderemail->value, $oShop->oxshops__oxname->getRawValue());
 
  546         $blSuccess = $this->
send();
 
  572         $oUser = $oOrder->getOrderUser();
 
  577         $this->
setFrom($oShop->oxshops__oxowneremail->value);
 
  580         $iOrderLang = $oLang->getObjectTplLanguage();
 
  584         if ($oShop->getLanguage() != $iOrderLang) {
 
  585             $oShop = $this->
_getShop($iOrderLang);
 
  597         $this->
setBody($oSmarty->fetch(
$myConfig->getTemplatePath($this->_sOrderOwnerTemplate, 
false)));
 
  598         $this->
setAltBody($oSmarty->fetch(
$myConfig->getTemplatePath($this->_sOrderOwnerPlainTemplate, 
false)));
 
  602         if ($sSubject === null) {
 
  603             if ($oSmarty->template_exists($this->_sOrderOwnerSubjectTemplate)) {
 
  604                 $sSubject = $oSmarty->fetch($this->_sOrderOwnerSubjectTemplate);
 
  606                 $sSubject = $oShop->oxshops__oxordersubject->getRawValue() . 
" (#" . $oOrder->oxorder__oxordernr->value . 
")";
 
  611         $this->
setRecipient($oShop->oxshops__oxowneremail->value, $oLang->translateString(
"order"));
 
  613         if ($oUser->oxuser__oxusername->value != 
"admin") {
 
  614             $sFullName = $oUser->oxuser__oxfname->getRawValue() . 
" " . $oUser->oxuser__oxlname->getRawValue();
 
  615             $this->
setReplyTo($oUser->oxuser__oxusername->value, $sFullName);
 
  618         $blSuccess = $this->
send();
 
  621         $oRemark = 
oxNew(
"oxremark");
 
  628         if (
$myConfig->getConfigParam(
'iDebug') == 6) {
 
  648         $this->
setViewData(
"contentident", 
"oxregisteraltemail");
 
  649         $this->
setViewData(
"contentplainident", 
"oxregisterplainaltemail");
 
  682         $this->
setBody($oSmarty->fetch($this->_sRegisterTemplate));
 
  683         $this->
setAltBody($oSmarty->fetch($this->_sRegisterTemplatePlain));
 
  685         $this->
setSubject(($sSubject !== null) ? $sSubject : $oShop->oxshops__oxregistersubject->getRawValue());
 
  687         $sFullName = $oUser->oxuser__oxfname->getRawValue() . 
" " . $oUser->oxuser__oxlname->getRawValue();
 
  689         $this->
setRecipient($oUser->oxuser__oxusername->value, $sFullName);
 
  690         $this->
setReplyTo($oShop->oxshops__oxorderemail->value, $oShop->oxshops__oxname->getRawValue());
 
  692         return $this->
send();
 
  711         $oUser = 
oxNew(
'oxuser');
 
  712         if ($sOxId && $oUser->load($sOxId)) {
 
  719             $this->
setBody($oSmarty->fetch($this->_sForgotPwdTemplate));
 
  720             $this->
setAltBody($oSmarty->fetch($this->_sForgotPwdTemplatePlain));
 
  721             $this->
setSubject(($sSubject !== null) ? $sSubject : $oShop->oxshops__oxforgotpwdsubject->getRawValue());
 
  723             $sFullName = $oUser->oxuser__oxfname->getRawValue() . 
" " . $oUser->oxuser__oxlname->getRawValue();
 
  724             $sRecipientAddress = $oUser->oxuser__oxusername->getRawValue();
 
  727             $this->
setReplyTo($oShop->oxshops__oxorderemail->value, $oShop->oxshops__oxname->getRawValue());
 
  729             if (!$this->
send()) {
 
  749     public function sendContactMail($sEmailAddress = null, $sSubject = null, $sMessage = null)
 
  761         $this->
setRecipient($oShop->oxshops__oxinfoemail->value, 
"");
 
  762         $this->
setFrom($oShop->oxshops__oxowneremail->value, $oShop->oxshops__oxname->getRawValue());
 
  765         return $this->
send();
 
  792         $sConfirmCode = md5($oUser->oxuser__oxusername->value . $oUser->oxuser__oxpasssalt->value);
 
  799         $this->
setBody($oSmarty->fetch($this->_sNewsletterOptInTemplate));
 
  800         $this->
setAltBody($oSmarty->fetch($this->_sNewsletterOptInTemplatePlain));
 
  801         $this->
setSubject(($sSubject !== null) ? $sSubject : 
oxRegistry::getLang()->translateString(
"NEWSLETTER") . 
" " . $oShop->oxshops__oxname->getRawValue());
 
  803         $sFullName = $oUser->oxuser__oxfname->getRawValue() . 
" " . $oUser->oxuser__oxlname->getRawValue();
 
  805         $this->
setRecipient($oUser->oxuser__oxusername->value, $sFullName);
 
  806         $this->
setFrom($oShop->oxshops__oxinfoemail->value, $oShop->oxshops__oxname->getRawValue());
 
  807         $this->
setReplyTo($oShop->oxshops__oxinfoemail->value, $oShop->oxshops__oxname->getRawValue());
 
  809         return $this->
send();
 
  823         $iActShopLang = 
$myConfig->getActiveShop()->getLanguage();
 
  825         $sUrl = 
$myConfig->getShopHomeURL() . 
'cl=newsletter&fnc=addme&uid=' . $sId;
 
  826         $sUrl .= 
'&lang=' . $iActShopLang;
 
  827         $sUrl .= ($sConfirmCode) ? 
'&confirm=' . $sConfirmCode : 
"";
 
  850         $sBody = $oNewsLetter->getHtmlText();
 
  852         if (!empty($sBody)) {
 
  854             $this->
setAltBody($oNewsLetter->getPlainText());
 
  856             $this->isHtml(
false);
 
  857             $this->
setBody($oNewsLetter->getPlainText());
 
  860         $this->
setSubject(($sSubject !== null) ? $sSubject : $oNewsLetter->oxnewsletter__oxtitle->getRawValue());
 
  862         $sFullName = $oUser->oxuser__oxfname->getRawValue() . 
" " . $oUser->oxuser__oxlname->getRawValue();
 
  863         $this->
setRecipient($oUser->oxuser__oxusername->value, $sFullName);
 
  864         $this->
setReplyTo($oShop->oxshops__oxorderemail->value, $oShop->oxshops__oxname->getRawValue());
 
  866         return $this->
send();
 
  884         $iCurrLang = 
$myConfig->getActiveShop()->getLanguage();
 
  887         $oShop = $this->
_getShop($iCurrLang);
 
  890         if ($oProduct->getLanguage() != $iCurrLang) {
 
  891             $oProduct->setLanguage($iCurrLang);
 
  892             $oProduct->load($oProduct->getId());
 
  897         $this->
setFrom($oShop->oxshops__oxinfoemail->value);
 
  905         $sArticleUrl = $oProduct->getLink();
 
  908         if (
$myConfig->getActiveView()->isActive(
'Invitations') && $oActiveUser = $oShop->getUser()) {
 
  909             $sArticleUrl = 
oxRegistry::get(
"oxUtilsUrl")->appendParamSeparator($sArticleUrl);
 
  910             $sArticleUrl .= 
"su=" . $oActiveUser->getId();
 
  918         $this->
setBody($oSmarty->fetch($this->_sSuggestTemplate));
 
  919         $this->
setAltBody($oSmarty->fetch($this->_sSuggestTemplatePlain));
 
  922         $this->
setRecipient($oParams->rec_email, $oParams->rec_name);
 
  923         $this->
setReplyTo($oParams->send_email, $oParams->send_name);
 
  925         return $this->
send();
 
  941         $iCurrLang = 
$myConfig->getActiveShop()->getLanguage();
 
  944         $oShop = $this->
_getShop($iCurrLang);
 
  947         $this->
setFrom($oParams->send_email, $oParams->send_name);
 
  957         if (
$myConfig->getActiveView()->isActive(
'Invitations') && $oActiveUser = $oShop->getUser()) {
 
  958             $sHomeUrl = 
oxRegistry::get(
"oxUtilsUrl")->appendParamSeparator($sHomeUrl);
 
  959             $sHomeUrl .= 
"su=" . $oActiveUser->getId();
 
  962         if (is_array($oParams->rec_email) && count($oParams->rec_email) > 0) {
 
  963             foreach ($oParams->rec_email as $sEmail) {
 
  964                 if (!empty($sEmail)) {
 
  965                     $sRegisterUrl = 
oxRegistry::get(
"oxUtilsUrl")->appendParamSeparator($sHomeUrl);
 
  967                     $sRegisterUrl .= 
"re=" . md5($sEmail);
 
  973                     $this->
setBody($oSmarty->fetch($this->_sInviteTemplate));
 
  975                     $this->
setAltBody($oSmarty->fetch($this->_sInviteTemplatePlain));
 
  979                     $this->
setReplyTo($oParams->send_email, $oParams->send_name);
 
 1004         $iOrderLang = (int) (isset($oOrder->oxorder__oxlang->value) ? $oOrder->oxorder__oxlang->value : 0);
 
 1007         $oShop = $this->
_getShop($iOrderLang);
 
 1018         if (
$myConfig->getConfigParam(
"bl_perfLoadReviews")) {
 
 1020             $oUser = 
oxNew(
'oxuser');
 
 1021             $this->
setViewData(
"reviewuserhash", $oUser->getReviewUserHash($oOrder->oxorder__oxuserid->value));
 
 1028         $aStore[
'INCLUDE_ANY'] = $oSmarty->security_settings[
'INCLUDE_ANY'];
 
 1030         $iOldTplLang = $oLang->getTplLanguage();
 
 1031         $iOldBaseLang = $oLang->getTplLanguage();
 
 1032         $oLang->setTplLanguage($iOrderLang);
 
 1033         $oLang->setBaseLanguage($iOrderLang);
 
 1035         $oSmarty->security_settings[
'INCLUDE_ANY'] = 
true;
 
 1038         $this->
setBody($oSmarty->fetch($this->_sSenedNowTemplate));
 
 1039         $this->
setAltBody($oSmarty->fetch($this->_sSenedNowTemplatePlain));
 
 1041         $oLang->setTplLanguage($iOldTplLang);
 
 1042         $oLang->setBaseLanguage($iOldBaseLang);
 
 1044         $oSmarty->security_settings[
'INCLUDE_ANY'] = $aStore[
'INCLUDE_ANY'];
 
 1047         $this->
setSubject(($sSubject !== null) ? $sSubject : $oShop->oxshops__oxsendednowsubject->getRawValue());
 
 1049         $sFullName = $oOrder->oxorder__oxbillfname->getRawValue() . 
" " . $oOrder->oxorder__oxbilllname->getRawValue();
 
 1051         $this->
setRecipient($oOrder->oxorder__oxbillemail->value, $sFullName);
 
 1052         $this->
setReplyTo($oShop->oxshops__oxorderemail->value, $oShop->oxshops__oxname->getRawValue());
 
 1054         return $this->
send();
 
 1070         $iOrderLang = (int) (isset($oOrder->oxorder__oxlang->value) ? $oOrder->oxorder__oxlang->value : 0);
 
 1073         $oShop = $this->
_getShop($iOrderLang);
 
 1084         $oUser = 
oxNew(
'oxuser');
 
 1085         $this->
setViewData(
"reviewuserhash", $oUser->getReviewUserHash($oOrder->oxorder__oxuserid->value));
 
 1091         $aStore[
'INCLUDE_ANY'] = $oSmarty->security_settings[
'INCLUDE_ANY'];
 
 1093         $iOldTplLang = $oLang->getTplLanguage();
 
 1094         $iOldBaseLang = $oLang->getTplLanguage();
 
 1095         $oLang->setTplLanguage($iOrderLang);
 
 1096         $oLang->setBaseLanguage($iOrderLang);
 
 1098         $oSmarty->security_settings[
'INCLUDE_ANY'] = 
true;
 
 1101         $this->
setBody($oSmarty->fetch($this->_sSendDownloadsTemplate));
 
 1102         $this->
setAltBody($oSmarty->fetch($this->_sSendDownloadsTemplatePlain));
 
 1104         $oLang->setTplLanguage($iOldTplLang);
 
 1105         $oLang->setBaseLanguage($iOldBaseLang);
 
 1107         $oSmarty->security_settings[
'INCLUDE_ANY'] = $aStore[
'INCLUDE_ANY'];
 
 1110         $this->
setSubject(($sSubject !== null) ? $sSubject : $oLang->translateString(
"DOWNLOAD_LINKS", null, 
false));
 
 1112         $sFullName = $oOrder->oxorder__oxbillfname->getRawValue() . 
" " . $oOrder->oxorder__oxbilllname->getRawValue();
 
 1114         $this->
setRecipient($oOrder->oxorder__oxbillemail->value, $sFullName);
 
 1115         $this->
setReplyTo($oShop->oxshops__oxorderemail->value, $oShop->oxshops__oxname->getRawValue());
 
 1117         return $this->
send();
 
 1134     public function sendBackupMail($aAttFiles, $sAttPath, $sEmailAddress, $sSubject, $sMessage, &$aStatus, &$aError)
 
 1145         $this->
setRecipient($oShop->oxshops__oxinfoemail->value, 
"");
 
 1146         $sEmailAddress = $sEmailAddress ? $sEmailAddress : $oShop->oxshops__oxowneremail->value;
 
 1148         $this->
setFrom($sEmailAddress, 
"");
 
 1152         $blAttashSucc = 
true;
 
 1154         foreach ($aAttFiles as $iNum => $sAttFile) {
 
 1155             $sFullPath = $sAttPath . $sAttFile;
 
 1156             if (@is_readable($sFullPath) && @is_file($sFullPath)) {
 
 1157                 $blAttashSucc = $this->
addAttachment($sFullPath, $sAttFile);
 
 1159                 $blAttashSucc = 
false;
 
 1160                 $aError[] = array(5, $sAttFile); 
 
 1164         if (!$blAttashSucc) {
 
 1165             $aError[] = array(4, 
""); 
 
 1172         $blSend = $this->
send();
 
 1193         if (is_array($sTo)) {
 
 1194             foreach ($sTo as $sAddress) {
 
 1204         $this->isHtml(
false);
 
 1209         return $this->
send();
 
 1224         $oArticleList = 
oxNew(
"oxarticlelist");
 
 1225         $oArticleList->loadStockRemindProducts($aBasketContents);
 
 1228         if ($oArticleList->count()) {
 
 1241             $this->
setRecipient($oShop->oxshops__oxowneremail->value, $oShop->oxshops__oxname->getRawValue());
 
 1242             $this->
setFrom($oShop->oxshops__oxowneremail->value, $oShop->oxshops__oxname->getRawValue());
 
 1243             $this->
setBody($oSmarty->fetch($this->getConfig()->getTemplatePath($this->_sReminderMailTemplate, 
false)));
 
 1245             $this->
setSubject(($sSubject !== null) ? $sSubject : $oLang->translateString(
'STOCK_LOW'));
 
 1247             $blSend = $this->
send();
 
 1271         $this->
setFrom($oParams->send_email, $oParams->send_name);
 
 1281         $this->
setBody($oSmarty->fetch($this->_sWishListTemplate));
 
 1282         $this->
setAltBody($oSmarty->fetch($this->_sWishListTemplatePlain));
 
 1285         $this->
setRecipient($oParams->rec_email, $oParams->rec_name);
 
 1286         $this->
setReplyTo($oParams->send_email, $oParams->send_name);
 
 1288         return $this->
send();
 
 1309         $iAlarmLang = $oAlarm->oxpricealarm__oxlang->value;
 
 1311         $oArticle = 
oxNew(
"oxarticle");
 
 1313         $oArticle->loadInLang($iAlarmLang, $aParams[
'aid']);
 
 1320         $this->
setViewData(
"bidprice", $oLang->formatCurrency($oAlarm->oxpricealarm__oxprice->value, $oCur));
 
 1325         $this->
setRecipient($oShop->oxshops__oxorderemail->value, $oShop->oxshops__oxname->getRawValue());
 
 1326         $this->
setSubject(($sSubject !== null) ? $sSubject : $oLang->translateString(
'PRICE_ALERT_FOR_PRODUCT', $iAlarmLang) . 
" " . $oArticle->oxarticles__oxtitle->getRawValue());
 
 1327         $this->
setBody($oSmarty->fetch($this->_sOwnerPricealarmTemplate));
 
 1328         $this->
setFrom($aParams[
'email'], 
"");
 
 1331         return $this->
send();
 
 1351         if ($oShop->getId() != $oAlarm->oxpricealarm__oxshopid->value) {
 
 1352             $oShop = 
oxNew(
"oxshop");
 
 1353             $oShop->load($oAlarm->oxpricealarm__oxshopid->value);
 
 1363         $this->
setViewData(
"product", $oAlarm->getArticle());
 
 1365         $this->
setViewData(
"bidprice", $oAlarm->getFProposedPrice());
 
 1366         $this->
setViewData(
"currency", $oAlarm->getPriceAlarmCurrency());
 
 1372         $this->
setSubject($oShop->oxshops__oxname->value);
 
 1374         if ($sBody === null) {
 
 1375             $sBody = $oSmarty->fetch($this->_sPricealamrCustomerTemplate);
 
 1380         $this->addAddress($sRecipient, $sRecipient);
 
 1381         $this->
setReplyTo($oShop->oxshops__oxorderemail->value, $oShop->oxshops__oxname->getRawValue());
 
 1383         if ($sReturnMailBody) {
 
 1386             return $this->
send();
 
 1399     protected function _includeImages($sImageDir = null, $sImageDirNoSSL = null, $sDynImageDir = null, $sAbsImageDir = null, $sAbsDynImageDir = null)
 
 1402         if (preg_match_all(
'/<\s*img\s+[^>]*?src[\s]*=[\s]*[\'"]?([^[\'">]]+|.*?)?[\'">]/i', $sBody, $matches, PREG_SET_ORDER)) {
 
 1405             $blReSetBody = 
false;
 
 1408             $sDynImageDir = $oFileUtils->normalizeDir($sDynImageDir);
 
 1409             $sImageDir = $oFileUtils->normalizeDir($sImageDir);
 
 1410             $sImageDirNoSSL = $oFileUtils->normalizeDir($sImageDirNoSSL);
 
 1412             if (is_array($matches) && count($matches)) {
 
 1413                 $aImageCache = array();
 
 1416                 $oImgGenerator = 
oxNew(
"oxDynImgGenerator");
 
 1418                 foreach ($matches as $aImage) {
 
 1420                     $image = $aImage[1];
 
 1422                     if (strpos($image, $sDynImageDir) === 0) {
 
 1423                         $sFileName = $oFileUtils->normalizeDir($sAbsDynImageDir) . str_replace($sDynImageDir, 
'', $image);
 
 1424                     } elseif (strpos($image, $sImageDir) === 0) {
 
 1425                         $sFileName = $oFileUtils->normalizeDir($sAbsImageDir) . str_replace($sImageDir, 
'', $image);
 
 1426                     } elseif (strpos($image, $sImageDirNoSSL) === 0) {
 
 1427                         $sFileName = $oFileUtils->normalizeDir($sAbsImageDir) . str_replace($sImageDirNoSSL, 
'', $image);
 
 1430                     if ($sFileName && !@is_readable($sFileName)) {
 
 1431                         $sFileName = $oImgGenerator->getImagePath($sFileName);
 
 1436                         if (isset($aImageCache[$sFileName]) && $aImageCache[$sFileName]) {
 
 1437                             $sCId = $aImageCache[$sFileName];
 
 1439                             $sCId = $myUtilsObject->generateUID();
 
 1440                             $sMIME = $myUtils->oxMimeContentType($sFileName);
 
 1441                             if ($sMIME == 
'image/jpeg' || $sMIME == 
'image/gif' || $sMIME == 
'image/png') {
 
 1442                                 if ($this->
addEmbeddedImage($sFileName, $sCId, 
"image", 
"base64", $sMIME)) {
 
 1443                                     $aImageCache[$sFileName] = $sCId;
 
 1449                         if ($sCId && $sCId == $aImageCache[$sFileName]) {
 
 1450                             if ($sReplTag = str_replace($image, 
'cid:' . $sCId, $aImage[0])) {
 
 1451                                 $sBody = str_replace($aImage[0], $sReplTag, $sBody);
 
 1452                                 $blReSetBody = 
true;
 
 1473         $sSubject = str_replace(array(
'&', 
'"', 
''', 
'<', 
'>'), array(
'&', 
'"', 
"'", 
'<', 
'>'), $sSubject);
 
 1475         $this->
set(
"Subject", $sSubject);
 
 1485         return $this->Subject;
 
 1495     public function setBody($sBody = null, $blClearSid = 
true)
 
 1501         $this->
set(
"Body", $sBody);
 
 1528         $sAltBody = str_replace(array(
'&', 
'"', 
''', 
'<', 
'>'), array(
'&', 
'"', 
"'", 
'<', 
'>'), $sAltBody);
 
 1530         $this->
set(
"AltBody", $sAltBody);
 
 1540         return $this->AltBody;
 
 1552             if ($this->
getConfig()->isUtf() && function_exists(
'idn_to_ascii') ) {
 
 1553                 $sAddress = idn_to_ascii($sAddress);
 
 1556             parent::AddAddress($sAddress, $sName);
 
 1559             $this->_aRecipients[] = array($sAddress, $sName);
 
 1581         $this->_aRecipients = array();
 
 1597             $sEmail = $this->
_getShop()->oxshops__oxorderemail->value;
 
 1600         $this->_aReplies[] = array($sEmail, $sName);
 
 1603             parent::addReplyTo($sEmail, $sName);
 
 1623         $this->_aReplies = array();
 
 1632     public function setFrom($address, $name = null, $auto = 
true)
 
 1634         $address = substr($address, 0, 150);
 
 1635         $name = substr($name, 0, 150);
 
 1663         return $this->FromName;
 
 1675             $this->_sCharSet = $sCharSet;
 
 1689         $this->
set(
"Mailer", $sMailer);
 
 1699         return $this->Mailer;
 
 1709         $this->
set(
"Host", $sHost);
 
 1719         return $this->ErrorInfo;
 
 1730         $this->
set(
"WordWrap", $iWordWrap);
 
 1740         $this->_blInlineImgEmail = $blUseImages;
 
 1749         $encoding = 
'base64',
 
 1750         $type = 
'application/octet-stream',
 
 1751         $disposition = 
'attachment' 
 1753         $this->_aAttachments[] = array($path, $name, $encoding, $type, $disposition);
 
 1771         $encoding = 
'base64',
 
 1772         $type = 
'application/octet-stream',
 
 1773         $disposition = 
'inline' 
 1775         $this->_aAttachments[] = array(
 
 1806         $this->_aAttachments = array();
 
 1822         if (stripos($sName, 
'X-') !== 
false) {
 
 1849         $sOwnerMessage = 
"Error sending eMail(" . $this->
getSubject() . 
") to: \n\n";
 
 1851         foreach ($aRecipients as $aEMail) {
 
 1852             $sOwnerMessage .= $aEMail[0];
 
 1853             $sOwnerMessage .= (!empty($aEMail[1])) ? 
' (' . $aEMail[1] . 
')' : 
'';
 
 1854             $sOwnerMessage .= 
" \n ";
 
 1856         $sOwnerMessage .= 
"\n\nError : " . $this->
getErrorInfo();
 
 1861         $blRet = @mail($oShop->oxshops__oxorderemail->value, 
"eMail problem in shop!", $sOwnerMessage);
 
 1932         $this->error_count = 0;
 
 1933         $this->ErrorInfo = 
'';
 
 1949         $this->
setFrom($oShop->oxshops__oxorderemail->value, $oShop->oxshops__oxname->getRawValue());
 
 1962     protected function _getShop($iLangId = null, $iShopId = null)
 
 1964         if ($iLangId === null && $iShopId === null) {
 
 1965             if (isset($this->_oShop)) {
 
 1968                 return $this->_oShop = $this->
getConfig()->getActiveShop();
 
 1974         $oShop = 
oxNew(
'oxShop');
 
 1975         if ($iShopId !== null) {
 
 1976             $oShop->setShopId($iShopId);
 
 1978         if ($iLangId !== null) {
 
 1979             $oShop->setLanguage($iLangId);
 
 1994         $this->
set(
"SMTPAuth", 
true);
 
 1995         $this->
set(
"Username", $sUserName);
 
 1996         $this->
set(
"Password", $sUserPassword);
 
 2006         $this->
set(
"SMTPDebug", $blDebug);
 
 2014         $this->
set(
"PluginDir", getShopBasePath() . 
"core/phpmailer/");
 
 2023         $oOutput = 
oxNew(
"oxOutput");
 
 2024         $this->
setBody($oOutput->process($this->getBody(), 
"oxemail"));
 
 2025         $this->
setAltBody($oOutput->process($this->getAltBody(), 
"oxemail"));
 
 2026         $oOutput->processEmail($this);
 
 2040             $oEx = 
oxNew(
"oxException");
 
 2041             $oEx->setMessage($oException->getMessage());
 
 2043             if ($this->
getConfig()->getConfigParam(
'iDebug') != 0) {
 
 2058         $oOutputProcessor = 
oxNew(
"oxOutput");
 
 2061         foreach ($this->_aViewData as $sKey => $sValue) {
 
 2062             $oSmarty->assign($sKey, $sValue);
 
 2066         $aNewSmartyArray = $oOutputProcessor->processViewArray($oSmarty->get_template_vars(), 
"oxemail");
 
 2068         foreach ($aNewSmartyArray as $key => $val) {
 
 2069             $oSmarty->assign($key, $val);
 
 2080         if (!$this->_sCharSet) {
 
 2083             return $this->CharSet;
 
 2104         $this->_oShop = $oShop;
 
 2114         return $this->
getConfig()->getActiveView()->getViewConfig();
 
 2124         return $this->
getConfig()->getActiveView();
 
 2136         return $oConfig->getActShopCurrencyObject();
 
 2147         $this->_aViewData[$sKey] = $sValue;
 
 2169         if (isset($this->_aViewData[$sKey])) {
 
 2181         $this->_aViewData[
"oUser"] = $oUser;
 
 2191         return $this->_aViewData[
"oUser"];
 
 2203         $oOrderList = 
oxNew(
'oxOrderFileList');
 
 2204         $oOrderList->loadOrderFiles($sOrderId);
 
 2206         if (count($oOrderList) > 0) {
 
 2222         return oxStr::getStr()->preg_replace(
'/(\?|&(amp;)?)(force_)?(admin_)?sid=[A-Z0-9\.]+/i', 
'\1shp=' . $this->
getConfig()->getShopId(), $sAltBody);
 
 2233         $sSelect = 
"SELECT `OXID`  
 2235           WHERE `OXACTIVE` = 1  
 2236           AND `OXUSERNAME` = ?  
 2237           AND `OXPASSWORD` != ''";
 
 2239         if ($this->
getConfig()->getConfigParam(
'blMallUsers')) {
 
 2240             $sSelect .= 
"ORDER BY OXSHOPID = ? DESC";
 
 2242             $sSelect .= 
"AND OXSHOPID = ?";