You are here

function PHPMailer::InlineImageExists in SMTP Authentication Support 5

Same name and namespace in other branches
  1. 7.2 smtp.phpmailer.inc \PHPMailer::InlineImageExists()
  2. 7 smtp.phpmailer.inc \PHPMailer::InlineImageExists()

Returns true if an inline attachment is present. @access private

Return value

bool

1 call to PHPMailer::InlineImageExists()
PHPMailer::CreateHeader in ./smtp.module
Assembles message header. @access private

File

./smtp.module, line 1780
Enables drupal to send email directly to an SMTP server using authentication. Uses the PHPMailer class by Brent R. Matzelle.

Class

PHPMailer
PHPMailer - PHP email transport class @package PHPMailer @author Brent R. Matzelle @copyright 2001 - 2003 Brent R. Matzelle

Code

function InlineImageExists() {
  $result = false;
  for ($i = 0; $i < count($this->attachment); $i++) {
    if ($this->attachment[$i][6] == "inline") {
      $result = true;
      break;
    }
  }
  return $result;
}