function phpmailer_install in PHPMailer 8.3
Implementation of hook_install().
File
- ./
phpmailer.install, line 50  - PHPMailer installation functions.
 
Code
function phpmailer_install() {
  /**
   *  @todo This part needs to be figured out.
   */
  //  if (!phpmailer_active() && !(\Drupal::moduleHandler()->moduleExists('mimemail') && variable_get('mimemail_engine', 'mimemail') == 'phpmailer')) {
  if (!phpmailer_active()) {
    drupal_set_message(t('PHPMailer has been installed, but it is not currently active. Activate and configure it by navigating to Configuration > System > PHPMailer (/admin/config/system/phpmailer).'));
  }
  //  if (\Drupal::moduleHandler()->moduleExists('mailsystem')) {
  //    /**
  //     *  @todo This part needs to be figured out.
  //     */
  //    mailsystem_set(['phpmailer' => 'DrupalPHPMailer']);
  //  }
}