static function Mandrill::isValidContentType in Mandrill 6
Helper to determine attachment is valid.
@static
Parameters
$ct:
Return value
bool
1 call to Mandrill::isValidContentType()
File
- ./mandrill.class.php, line 417 
Class
Code
static function isValidContentType($ct) {
  $valids = self::getValidContentTypes();
  foreach ($valids as $vct) {
    if (strpos($ct, $vct) !== FALSE) {
      return TRUE;
    }
  }
  return FALSE;
}