• Resolved leolajungle

    (@leolajungle)


    Hi,

    I’m actually working on a website on which we are using your plugin and Gravity Forms, but we faced an issue with the mails attachments.

    In fact, only one attachment was sent even if there was more than one, it was caused by what I think to be an error in the code responsible for this functionality, we fixed it but as we are using Composer to manage our plugins, our modification will be overridden when your plugin will be updated.

    Here is the working code for the file sendinblue.php (lines 1082 to 1096) could you fix that bug in the next updates ?

    Thank you,
    Léo.

    // Attachments.
    $attachment_content = array();
    if ( ! empty( $attachments ) ) {
    	foreach ( $attachments as $attachment ) {
    		if ( !empty( $attachment ) ) {
    			$content = self::getAttachmentStruct( $attachment );
    			if ( ! is_wp_error( $content ) ) {
    				$attachment_content = array_merge( $attachment_content, array( $content ) );
    			}
    		}
    	}
    	if ( !empty( $attachment_content ) ) {
    		$data["attachment"] = $attachment_content;
    	}
    }
    • This topic was modified 2 years, 1 month ago by leolajungle.
    • This topic was modified 2 years, 1 month ago by leolajungle.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Sarah823

    (@sendinbluecustomercare)

    Hello @leolajungle

    Thanks for this.

    At present, our relay service only supports one attachment per mail. The restriction is on the relay side, rather than the plugin.

    I have passed this on to the product team.

    Thanks,

    Sarah

    Thread Starter leolajungle

    (@leolajungle)

    It’s working fine with the edited plugin on our side, so I guess the limitation is caused by the plugin (we can receive mails with multiples attachments using the SB relay)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Only one Gravity Form attachment working (fix provided)’ is closed to new replies.