23 require_once dirname(__FILE__).
'/class.ilBMFBase.php';
40 $urlparts = @parse_url($url);
42 if (!$urlparts[
'scheme']) {
47 if (strcasecmp($urlparts[
'scheme'],
'mailto') == 0) {
48 $transport_type =
'SMTP';
49 } elseif (strcasecmp($urlparts[
'scheme'],
'https') == 0) {
50 $transport_type =
'HTTP';
53 $transport_type = strtoupper($urlparts[
'scheme']);
55 $transport_include = dirname(__FILE__).
'/Transport/class.ilBMFTransport_' . $transport_type .
'.php';
56 $res = @include_once($transport_include);
57 if (!
$res && !in_array($transport_include, get_included_files())) {
61 $transport_class =
"ilBMFTransport_$transport_type";
62 if (!class_exists($transport_class)) {
66 $t =&
new $transport_class($url, $encoding);