You are here

static function Mandrill::isValidContentType in Mandrill 6

Helper to determine attachment is valid.

@static

Parameters

$ct:

Return value

bool

1 call to Mandrill::isValidContentType()
Mandrill::getAttachmentStruct in ./mandrill.class.php

File

./mandrill.class.php, line 417

Class

Mandrill

Code

static function isValidContentType($ct) {
  $valids = self::getValidContentTypes();
  foreach ($valids as $vct) {
    if (strpos($ct, $vct) !== FALSE) {
      return TRUE;
    }
  }
  return FALSE;
}