X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Femail-functions.php;h=7e3137da77249669fdfa0b72d1f1b5fd7f456c63;hb=8848f4a3fd7b32a1bbd9139766171701b94b2f42;hp=7731595ae4163e39aa19ea5a535ab6a2ecd3002e;hpb=cd7d344ea7007cfa20413acd3e03e50f0ab86d86;p=mailer.git diff --git a/inc/email-functions.php b/inc/email-functions.php index 7731595ae4..7e3137da77 100644 --- a/inc/email-functions.php +++ b/inc/email-functions.php @@ -10,13 +10,8 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Mailversand bezogene Funktionen * * -------------------------------------------------------------------- * - * $Revision:: $ * - * $Date:: $ * - * $Tag:: 0.2.1-FINAL $ * - * $Author:: $ * - * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2013 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 * @@ -50,7 +45,7 @@ function sendEmail ($toEmail, $subject, $message, $isHtml = 'N', $mailHeader = ' } // 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 @@ -143,7 +138,7 @@ function sendRawEmail ($toEmail, $subject, $message, $headers) { $mail->CharSet = 'UTF-8'; // Path for PHPMailer - $mail->PluginDir = sprintf("%sinc/phpmailer/", getPath()); + $mail->PluginDir = sprintf('%sinc/phpmailer/', getPath()); $mail->IsSMTP(); $mail->SMTPAuth = TRUE;