@@ 837-843 (lines=7) @@ | ||
834 | $xoopsMailer->assign('USERNAME', $username); |
|
835 | $subject = _MA_XNEWSLETTER_SUBSCRIPTION_SUBJECT_CHANGE . $GLOBALS['xoopsConfig']['sitename']; |
|
836 | $xoopsMailer->setSubject($subject); |
|
837 | if (!$xoopsMailer->send()) { |
|
838 | $count_err++; |
|
839 | $actionProts_error[] = _MA_XNEWSLETTER_SUBSCRIPTION_ERROR_SENDACTKEY . '<br>Error:' . $xoopsMailer->getErrors(); |
|
840 | //redirect_header($currentFile, 3, _MA_XNEWSLETTER_SUBSCRIPTION_ERROR_SENDACTKEY . '<br>' . $xoopsMailer->getErrors()); |
|
841 | } else { |
|
842 | $actionProts_ok[] = str_replace('%e', $subscr_email, _MA_XNEWSLETTER_SUBSCRIPTION_PROT_SENT_INFO); |
|
843 | } |
|
844 | } |
|
845 | if (0 == $count_err) { |
|
846 | if ('addnew' === $saveType) { |
|
@@ 1018-1022 (lines=5) @@ | ||
1015 | $activationKey = base64_encode(implode('||', $act)); |
|
1016 | $xoopsMailer->assign('ACTLINK', XOOPS_URL . "/modules/xnewsletter/{$currentFile}?op=unsub&email={$subscrObj->getVar('subscr_email')}&actkey={$activationKey}"); |
|
1017 | $xoopsMailer->setSubject(_MA_XNEWSLETTER_DELETESUBJECT . $GLOBALS['xoopsConfig']['sitename']); |
|
1018 | if (!$xoopsMailer->send()) { |
|
1019 | $count_err++; |
|
1020 | $actionProts_error[] = _MA_XNEWSLETTER_SUBSCRIPTION_ERROR_SENDACTKEY . '<br>' . $xoopsMailer->getErrors(); |
|
1021 | redirect_header($currentFile, 3, _MA_XNEWSLETTER_SUBSCRIPTION_ERROR_SENDACTKEY . '<br>' . $xoopsMailer->getErrors()); |
|
1022 | } |
|
1023 | // } |
|
1024 | if (0 == $count_err) { |
|
1025 | $actionProts_ok[] = str_replace('%subscr_email', $subscrObj->getVar('subscr_email'), _MA_XNEWSLETTER_SENDMAIL_UNREG_OK); |