diff --git a/e107_admin/mailout.php b/e107_admin/mailout.php index bfc7a7029..12711658f 100644 --- a/e107_admin/mailout.php +++ b/e107_admin/mailout.php @@ -1572,7 +1572,7 @@ class mailout_recipients_ui extends e_admin_ui $this->mailManager = new e107MailManager; $sql = e107::getDb(); - $sql->gen("SELECT r.mail_detail_id,c.mail_title FROM #mail_recipients AS r LEFT JOIN #mail_content as c ON r.mail_detail_id = c.mail_source_id GROUP BY r.mail_detail_id"); + $sql->gen("SELECT r.mail_detail_id,c.mail_title FROM `#mail_recipients` AS r LEFT JOIN `#mail_content` as c ON r.mail_detail_id = c.mail_source_id GROUP BY r.mail_detail_id"); while($row = $sql->fetch()) { diff --git a/e107_core/templates/email_template.php b/e107_core/templates/email_template.php index d83a55d6b..7566d76a2 100644 --- a/e107_core/templates/email_template.php +++ b/e107_core/templates/email_template.php @@ -125,7 +125,7 @@ $EMAIL_TEMPLATE['default']['body'] = "{BODY}
{MEDIA1}{MEDIA2}{MEDIA3}{MED $EMAIL_TEMPLATE['default']['footer'] = "

+ {SITEURL}
{SITEBUTTON: type=email&h=60}

{SITENAME=link}

- {SITEURL}
@@ -170,7 +170,7 @@ $EMAIL_TEMPLATE['signup']['body'] = "
+ {SITEURL}
{SITEBUTTON: type=email&h=60}

{SITENAME=link}

- {SITEURL}
diff --git a/e107_handlers/mail.php b/e107_handlers/mail.php index 345ac0b29..a1c4cb8a6 100644 --- a/e107_handlers/mail.php +++ b/e107_handlers/mail.php @@ -920,7 +920,7 @@ class e107Email extends PHPMailer * * @return boolean|string - TRUE if success, error message if failure */ - public function sendEmail($send_to, $to_name, $eml = '', $bulkmail = FALSE) + public function sendEmail($send_to, $to_name, $eml = '', $bulkmail = false) { if (count($eml)) { @@ -931,7 +931,7 @@ class e107Email extends PHPMailer } - if ($bulkmail && $this->localUseVerp && $this->save_bouncepath && (strpos($this->save_bouncepath,'@') !== FALSE)) + if (($bulkmail == true) && $this->localUseVerp && $this->save_bouncepath && (strpos($this->save_bouncepath,'@') !== false)) { // Format where sender is owner@origin, target is user@domain is: owner+user=domain@origin list($our_sender,$our_domain) = explode('@', $this->save_bouncepath,2); @@ -976,7 +976,7 @@ class e107Email extends PHPMailer $this->TotalSent++; - if (($this->pause_amount > 0) && ($this->SendCount >= $this->pause_amount)) + if (($bulkmail == true) && ($this->pause_amount > 0) && ($this->SendCount >= $this->pause_amount)) { if ($this->SMTPKeepAlive && ($this->Mailer == 'smtp')) $this->SmtpClose(); sleep($this->pause_time); diff --git a/signup.php b/signup.php index 9d2cbec69..744e0cd62 100644 --- a/signup.php +++ b/signup.php @@ -449,11 +449,11 @@ class signup if(!$mailer->sendEmail(USEREMAIL, USERNAME, $eml, FALSE)) { - echo "



  >> ".LAN_SIGNUP_42; // there was a problem. + echo "
".LAN_SIGNUP_42."
"; // there was a problem. } else { - echo "

  >> ".LAN_SIGNUP_43." [ ".USEREMAIL." ] - ".LAN_SIGNUP_45; + echo "
".LAN_SIGNUP_43." [ ".USEREMAIL." ] - ".LAN_SIGNUP_45."
"; } } @@ -899,21 +899,23 @@ if (isset($_POST['register']) && intval($pref['user_reg']) === 1) if(!vartrue($allData['data']['user_name'])) $allData['data']['user_name'] = $allData['data']['user_login']; // prefered way to send user emails - if(!getperms('0')) // Alow logged in main-admin to test signup procedure. - { + // if(!getperms('0')) // Alow logged in main-admin to test signup procedure. + // { $sysuser = e107::getSystemUser(false, false); $sysuser->setData($allData['data']); - $sysuser->setId($userid); + $sysuser->setId($nid); $check = $sysuser->email('signup', array( + 'user_id' => $nid, 'user_password' => $savePassword, // for security reasons - password passed ONLY through options )); - } - else + // } + + if(getperms('0')) { - $check = true; e107::getMessage()->addDebug(print_a($allData,true)); e107::getMessage()->addDebug("Password: ".$savePassword.""); } + /* $eml = render_email($allData['data']);