* $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 *
} // 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
$mail->CharSet = 'UTF-8';
// Path for PHPMailer
- $mail->PluginDir = sprintf("%sinc/phpmailer/", getPath());
+ $mail->PluginDir = sprintf('%sinc/phpmailer/', getPath());
$mail->IsSMTP();
$mail->SMTPAuth = TRUE;