[ Index ]

MailPress 7.1

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-content/add-ons/ -> MailPress_connection_smtp_SMTPUTF8.php (source)

   1  <?php
   2  if ( class_exists( 'MailPress' ) && !class_exists( 'MailPress_connection_smtp_SMTPUTF8' ) )
   3  {
   4  /*
   5  Plugin Name: MailPress_connection_smtp_SMTPUTF8
   6  Plugin URI: http://blog.mailpress.org/tutorials/add-ons/connection_smtp/
   7  Description: Connection : use Smtp and support SMTPUTF8 ( your SMTP server <span style="color:red;">MUST</span> support <a href="https://en.wikipedia.org/wiki/Extended_SMTP#SMTPUTF8" target="_blank">SMTPUTF8</a> ) 
   8  Version: 7.1
   9  */
  10  
  11  class MailPress_connection_smtp_SMTPUTF8
  12  {
  13  	function __construct()
  14      {
  15          defined( 'SWIFT_ADDRESSENCODER' ) or define ( 'SWIFT_ADDRESSENCODER',    'utf8' );
  16  
  17          new MP_Swift_Connection_smtp_SMTPUTF8();
  18  
  19  // for wp admin
  20          if ( is_admin() )
  21          {
  22          // for link on plugin page
  23              add_filter( 'plugin_action_links',             array( __CLASS__, 'plugin_action_links' ), 10, 2 );
  24          }
  25      }
  26  
  27  ////  ADMIN  ////
  28  ////  ADMIN  ////
  29  ////  ADMIN  ////
  30  ////  ADMIN  ////
  31  
  32  // for link on plugin page
  33  	public static function plugin_action_links( $links, $file )
  34      {
  35          return MailPress::plugin_links( $links, $file, plugin_basename( __FILE__ ), 'connection_smtp' );
  36      }
  37  }
  38  new MailPress_connection_smtp_SMTPUTF8();
  39  }


Generated: Mon Mar 11 18:33:33 2019 Cross-referenced by PHPXref 0.7.1