Support » Plugin: WP Offload SES Lite » Multi (B)CC support

  • Hello,

    Today I found out the plugin does not support the usage of a multi (B)CC header.
    i.e. the header below will result into a faulty header exception and will be ignored.

    Bcc: address1@example.com, address2@example.com

    As the plugin is closed off with private functions / attributes and a lack of hooks there seems to be no other way to fix this than forking the plugin. Can you please consider fixing this issue in the core plugin by making the following change?

    classes/Email.php:335

    private function header_cc( $content, $type = 'cc' ) {
    	$recipients = $this->maybe_convert_to_array( $content );
    
    	foreach ( $recipients as $recipient ) {
    		$recipient = $this->maybe_split_recipient( $recipient );
    
    		try {
    			switch ( $type ) {
    				case 'cc':
    					$this->mail->addCC( $recipient['email'], $recipient['name'] );
    					break;
    				case 'bcc':
    					$this->mail->addBCC( $recipient['email'], $recipient['name'] );
    					break;
    			}
    		} catch ( \Exception $e ) {
    			continue;
    		}
    	}
    }

    Eager to hear from you,

    With kind regards

    • This topic was modified 10 months, 1 week ago by fperdaan.
  • The topic ‘Multi (B)CC support’ is closed to new replies.