Attachments when sending to multiple recipients


Home Forums Front End PM PRO Attachments when sending to multiple recipients

This topic is: Not Resolved
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #10521
    Dagur Eyjolfsson
    Participant

    When I send a message with an attachment to multiple recipients. (Each one gets a separate message)
    Then only one of them actually gets the attachment, but all recipients get the actual message.

    Is this something that can be easily fixed?

    #10530
    Shamim Hasan
    Keymaster

    Thank you for letting me know.
    I have already fixed that.
    Next version you will get it fixed.

    #10714
    Dagur Eyjolfsson
    Participant

    Hi,
    I see you already posted a fix, which is great. Thank you for that.

    Can you please explain where the fix is located in the code? I am asking for my developers, because we have made quite a lot of custom adjustments to make the Front end PM work for us, and that means upgrading is a pain.

    If we can, then we just want to apply the fix to our current version.

    #10723
    Shamim Hasan
    Keymaster

    There are lots of hooks in this plugin and you can change almost anything without changing core plugin code.
    It is not recommended to change plugin code.

    after that also if you need, this fix is located in class-fep-pro-to.php

    #10916
    Dagur Eyjolfsson
    Participant

    Hi, I upgraded and did some testing.
    Now I can send an attachment to TWO recipients, but the 3rd, 4th etc, recipients does not get a working attachment.
    The non-working attachments are displayed as “?attachment_id=xxxx” instead of the filename.

    #10919
    Shamim Hasan
    Keymaster

    Thank you for letting me know. It it happening due to object passed by reference.
    It is already fixed. Next version you will get it fixed. If you now want to change code please go to class-fep-pro-to.php line 536 and change foreach loop with this foreach loop

    
    foreach ( $this->first_message_attachments as $attachment ){
    	$attachment = (array)$attachment;
    	$file = get_attached_file( $attachment['ID'] );
    	unset( $attachment['ID'], $attachment['guid'] );
    	wp_insert_attachment( $attachment, $file, $message_id );
    }
    

    Let me know. Also let me know if you find any more issues.

Viewing 6 posts - 1 through 6 (of 6 total)

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.