Add BCC to settings
-
Hi,
it would be nice to have BCC added to the settings.
In fact I already did, but it would be cool to have it added to the official plugin.
I added to class-easywpsmtp-admin.php, line ~250 (after reply-to):
<tr valign="top"> <th scope="row"><?php esc_html_e( 'BCC Email Address', 'easy-wp-smtp' ); ?></th> <td> <input id="swpsmtp_bcc_email" type="email" name="swpsmtp_bcc_email" value="<?php echo isset( $swpsmtp_options['bcc_email'] ) ? esc_attr( $swpsmtp_options['bcc_email'] ) : ''; ?>" /><br /> <p class="description"><?php esc_html_e( "Optional. This email address will be used in the 'BCC' field of the email. You may define multiple addresses comma separated.", 'easy-wp-smtp' ); ?></p> </td> </tr>
and
if ( isset( $_POST['swpsmtp_bcc_email'] ) ) { $swpsmtp_options['bcc_email'] = sanitize_email( $_POST['swpsmtp_bcc_email'] ); }
in line 111.
and to easy-wp-smtp.php
if ( ! empty( $this->opts['bcc_email'] ) ) { $mail->AddBcc( $this->opts['bcc_email'] ); }
in lines ~100 and ~220.
Would be happy to see it in another update.
Thanks!
Markus
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Add BCC to settings’ is closed to new replies.