* -------------------------------------------------------------------- *
* Kurzbeschreibung : Mailversand bezogene Funktionen *
* -------------------------------------------------------------------- *
- * $Revision:: $ *
- * $Date:: $ *
- * $Tag:: 0.2.1-FINAL $ *
- * $Author:: $ *
- * -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team *
+ * Copyright (c) 2009 - 2015 by Mailer Developer Team *
* For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
} // END - if
// Set from header
- if ((!isInString('@', $toEmail)) && ($toEmail > 0)) {
+ if ((!isInString('@', $toEmail)) && (isValidId($toEmail))) {
// Does the user exist?
if ((isExtensionActive('user')) && (fetchUserData($toEmail))) {
// Get the email
} // END - if
// Debug mode enabled?
- if (isDebugModeEnabled()) {
+ if ((isDebugModeEnabled()) && (!isAjaxOutputMode())) {
// Init content array
$content = array(
'headers' => htmlentities(trim($mailHeader)),
$mail->CharSet = 'UTF-8';
// Path for PHPMailer
- $mail->PluginDir = sprintf("%sinc/phpmailer/", getPath());
+ $mail->PluginDir = sprintf('%sinc/phpmailer/', getPath());
$mail->IsSMTP();
$mail->SMTPAuth = TRUE;
} // END - if
// Is the raw userid set?
- if (isValidUserId(postRequestElement($userIdColumn[0], $id))) {
+ if (isValidId(postRequestElement($userIdColumn[0], $id))) {
// Set it in content
$content[$userIdColumn[0]] = bigintval(postRequestElement($userIdColumn[0], $id));