]> git.mxchange.org Git - mailer.git/blobdiff - inc/email-functions.php
Updated domain without a dash :(
[mailer.git] / inc / email-functions.php
index 7731595ae4163e39aa19ea5a535ab6a2ecd3002e..90ec5441b96b6cd7c803a7f990cc6df02f4edcea 100644 (file)
@@ -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
@@ -143,7 +143,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;