X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Femail-functions.php;h=3663ca4ce8e49d03d6638666ae0a7aeff02b0a07;hp=a793b45e7859eaa437e887fc9269292b85fade2a;hb=8cab12aa2bd0bd1de03a377b37cd42faae64b0e1;hpb=ca256746fe0757a23df4064824c8fe2087ad5634 diff --git a/inc/email-functions.php b/inc/email-functions.php index a793b45e78..3663ca4ce8 100644 --- a/inc/email-functions.php +++ b/inc/email-functions.php @@ -16,7 +16,7 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2012 by Mailer Developer Team * + * Copyright (c) 2009 - 2013 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 +50,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