| 1 |
<?php |
<?php |
| 2 |
// $Id: smtp.module,v 1.17.2.10 2009/11/10 11:06:14 franz Exp $ |
// $Id: smtp.module,v 1.17.2.11 2009/11/10 12:13:49 franz Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 55 |
*/ |
*/ |
| 56 |
function smtp_admin_settings() { |
function smtp_admin_settings() { |
| 57 |
// Override the smtp_library variable. |
// Override the smtp_library variable. |
| 58 |
if (module_exists('mimemail')) { |
if (module_exists('mimemail') && |
| 59 |
|
strpos(variable_get('smtp_library', ''), 'mimemail')) { |
| 60 |
// don't touch smtp_library |
// don't touch smtp_library |
| 61 |
} |
} |
| 62 |
else { |
else { |
| 815 |
return $substring; |
return $substring; |
| 816 |
} // End of _smtp_get_substring(). |
} // End of _smtp_get_substring(). |
| 817 |
|
|
| 818 |
function drupal_mail_wrapper($message) { |
if (!strpos(variable_get('smtp_library', ''), 'mimemail') && |
| 819 |
return smtp_drupal_mail_wrapper($message); |
!function_exists('drupal_mail_wrapper') ) { |
| 820 |
|
|
| 821 |
|
function drupal_mail_wrapper($message) { |
| 822 |
|
return smtp_drupal_mail_wrapper($message); |
| 823 |
|
} |
| 824 |
} |
} |
| 825 |
|
|
|
|
|
| 826 |
if (module_exists('mimemail')) { |
if (module_exists('mimemail')) { |
| 827 |
/** |
/** |
| 828 |
* hook_mailengine for SMTP/MIMEMAIL integration |
* hook_mailengine for SMTP/MIMEMAIL integration |