[ Index ]

MailPress 7.2

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

title

Body

[close]

/mp-admin/includes/settings/bounce_handling/ -> form.php (source)

   1  <?php  // bounce_handling
   2  
   3  $xmailboxstatus = array(     0    =>    __( 'no changes', 'MailPress' ),
   4                  1    =>    __( 'mark as read', 'MailPress' ),
   5                  2    =>    __( 'delete', 'MailPress' ) );
   6  
   7  if ( !isset( $bounce_handling ) )
   8  {
   9      $bounce_handling = get_option( MailPress_bounce_handling::option_name );
  10      if ( !isset( $bounce_handling['batch_mode'] ) ) $bounce_handling['batch_mode'] = 'wpcron';
  11  }
  12  if ( !isset( $bounce_handling['pop3'] ) )
  13  {
  14      $bounce_handling['pop3'] = get_option( 'MailPress_connection_pop3' );
  15  }
  16  ?>
  17  <form name="<?php echo basename(__DIR__); ?>" method="post" class="mp_settings">
  18      <input type="hidden" name="_tab" value="<?php echo basename(__DIR__); ?>" />
  19      <table class="form-table">
  20  
  21  <!-- Pop3 -->
  22  
  23  <?php MP_AdminPage::pop3_form( $bounce_handling, 'bounce_handling' ); ?>
  24  
  25  <!-- bounces -->
  26          <tr class="mp_sep">
  27              <th class="thtitle"><?php _e( 'Handling Bounces', 'MailPress' ); ?></th>
  28              <td></td>
  29          </tr>
  30          <tr>
  31              <th><label for="bounce_handling_Return_Path"><?php _e( 'Return-Path', 'MailPress' ); ?></label></th>
  32              <td class="field<?php if ( isset( MP_AdminPage::$err_mess['Return-Path'] ) ) echo ' form-invalid'; ?>">
  33                  <input type="text" name="bounce_handling[Return-Path]" value="<?php if ( isset( $bounce_handling['Return-Path'] ) ) echo $bounce_handling['Return-Path']; ?>" class="regular-text" id="bounce_handling_Return_Path" />
  34                  <br /><?php printf( __( 'generated Return-Path will be %1$s', 'MailPress' ), ( !isset( $bounce_handling['Return-Path'] ) ) ?  __( 'start_of_email<i>+mail_id</i>+<i>mp_user_id</i>@mydomain.tld', 'MailPress' ) : substr( $bounce_handling['Return-Path'], 0, strpos( $bounce_handling['Return-Path'], '@' ) ) . '<i>+mail_id</i>+<i>mp_user_id</i>@' . substr( $bounce_handling['Return-Path'], strpos( $bounce_handling['Return-Path'], '@' ) + 1 ) ); ?>
  35              </td>
  36          </tr>
  37          <tr>
  38              <th><label for="bounce_handling_max_bounces"><?php _e( 'Max Bounces Per User', 'MailPress' ); ?></label></th>
  39              <td class="field">
  40                  <select name="bounce_handling[max_bounces]" class="w4e" id="bounce_handling_max_bounces">
  41  <?php MP_AdminPage::select_number( 0, 5, $bounce_handling['max_bounces'] ?? 1 );?>
  42                  </select>
  43              </td>
  44          </tr>
  45          <tr>
  46              <th><label for="bounce_handling_mailbox_status"><?php _e( 'Bounce In Mailbox', 'MailPress' ); ?></label></th>
  47              <td class="field">
  48                  <select name="bounce_handling[mailbox_status]" id="bounce_handling_mailbox_status">
  49  <?php MP_AdminPage::select_option( $xmailboxstatus, $bounce_handling['mailbox_status'] ?? 2 );?>
  50                  </select>
  51              </td>
  52          </tr>
  53  <!-- cron -->
  54          <tr class="mp_sep">
  55              <th class="thtitle"><?php _e( 'Batch', 'MailPress' ); ?></th>
  56              <td></td>
  57          </tr>
  58  <?php MP_AdminPage::cron_form( $bounce_handling, 'bounce_handling', 'MailPress_bounce_handling' ); ?>
  59      </table>
  60  
  61  <?php MP_AdminPage::save_button(); ?>
  62  
  63  </form>


Generated: Tue May 19 15:55:14 2020 Cross-referenced by PHPXref 0.7.1