Home › Forums › Front End PM PRO › Attachments when sending to multiple recipients
- This topic has 5 replies, 2 voices, and was last updated 7 years, 10 months ago by Shamim Hasan.
- AuthorPosts
- February 1, 2018 at 11:22 am #10521Dagur EyjolfssonParticipant
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?
February 1, 2018 at 3:31 pm #10530Shamim HasanKeymasterThank you for letting me know.
I have already fixed that.
Next version you will get it fixed.February 6, 2018 at 8:31 pm #10714Dagur EyjolfssonParticipantHi,
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.
February 6, 2018 at 10:11 pm #10723Shamim HasanKeymasterThere 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
February 10, 2018 at 9:09 am #10916Dagur EyjolfssonParticipantHi, 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.February 10, 2018 at 11:23 am #10919Shamim HasanKeymasterThank 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 loopforeach ( $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.
- AuthorPosts
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.