You are here

function phpmailer_smtp_help in PHPMailer SMTP 2.1.x

Same name and namespace in other branches
  1. 8 phpmailer_smtp.module \phpmailer_smtp_help()
  2. 2.x phpmailer_smtp.module \phpmailer_smtp_help()
  3. 2.0.x phpmailer_smtp.module \phpmailer_smtp_help()

Implements hook_help().

File

./phpmailer_smtp.module, line 14
Uses the PHPMailer library to send emails via SMTP.

Code

function phpmailer_smtp_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.phpmailer_smtp':
      $text = file_get_contents(__DIR__ . '/README.txt');
      return '<pre>' . Html::escape($text) . '</pre>';
    default:
  }
}