<?php
/** This filter is documented in wp-admin/options.php */
if ( apply_filters( 'enable_post_by_email_configuration', true
) ) { ?>
<h2 class="title"><?php
_e( 'Post via email'
); ?></h2>
<p>
<?php
printf( /* translators: 1, 2, 3: Examples of random email addresses. */
__( 'To post to WordPress by email, you must set up a secret email account with POP3 access. Any mail received at this address will be posted, so it’s a good idea to keep this address very secret. Here are three random strings you could use: %1$s, %2$s, %3$s.'
),
sprintf( '<kbd>%s</kbd>',
wp_generate_password( 8, false
) ),
sprintf( '<kbd>%s</kbd>',
wp_generate_password( 8, false
) ),
sprintf( '<kbd>%s</kbd>',
wp_generate_password( 8, false
) ) );
?>
</p>
<table class="form-table" role="presentation">
<tr>
<th scope="row"><label for="mailserver_url"><?php
_e( 'Mail Server'
); ?></label></th>
<td><input name="mailserver_url" type="text" id="mailserver_url" value="<?php
form_option( 'mailserver_url'
); ?>" class="regular-text code" />
<label for="mailserver_port"><?php
_e( 'Port'
); ?></label>
<input name="mailserver_port" type="text" id="mailserver_port" value="