How to attach file in the file manager to send email

In a Send email action, how to attach a png file that was just created in the file manager? This doesn’t work.

When you say it was just created in the file manager, you mean that you uploaded yourself? If so, just copy the URL from there by right clicking the item in your file manager and then you’ll paste the URL in that File input.

It’s created by a png generator.
I have the dynamic link but the Send email does not pick it up.

image

Mmm, you could put an “Add pause before next action” action between the two, give it like 1000ms, and see if it is because of how fast it completes. If you wanna provide the plugin, I’ll give it a test myself as well.

I tried pause of 1000, did not work.

It’s a free download, took me quite a bit to figure out how to use.

Yeah, I’ll keep it real. I haven’t been able to figure out how I would do it. It’s really confusing. If you didn’t have to set a custom state for the link and it just came from the workflow, it would look a lot better.

For your setup, run in debug mode and step-by-step for the workflow. Check and see if it is fetching your information correctly from your state.

Usually when someone is trying to use a plugin and it’s not working, a large percentage of the time it’s because they are not using the right action. You should probably try using an event so you know the image is ready to be used. Are you using one of these? :blush:

Thanks J8.

I’m confident the plugin is doing what it’s supposed to do. It generates the link to the saved image in the file manager, the link is displayed on the page and I can verify it’s in the file manager. It also generates a download, which of course appears in the browser. These functions take only a second or two.

image

The problem now is to send the file in an email from the file manager. Apparently, bubble Send email will not “attach” the file in file manager even though the link (or output file name) is used. Even worse, the Send email won’t even recognize the link as a text when the dynamic link is used in the body of the email. Bubble chat bot confirms this.

So, there appears no way to use Send email to attach the file or send the link. Disastrous! I also tried the Postmark Send email, did not work either. Actually, very strangely, the attach file function worked for 2 or 3 times, then stopped working.

The way other png generators work is they attach the generated image by using Result of Step X. Unfortunately, the Better PDF Screenshot does not have that option. The other generators have other problems, so they appear to be unreliable as they time out during their generating process.

So, I’m stuck. :slight_smile:

Instead of trying to explain it, maybe it’s better to just show you a working example instead. I can try to do that for you later today. :blush:

Here you go. Here is a working example for you using that plugin:

Editor: Forum Test App | Bubble Editor

Preview: https://testapp42wcleandb.bubbleapps.io/version-test/how_to_attach_file_in_the_file_manager_to_send_email_?debug_mode=true

Hope that helps. :blush:

You’re a genius! Can you send the editor link to me so I can copy? :slight_smile:

Interesting development, I sent this to the bubble tech support. When they tested my page it worked for them! But it doesn’t work when I press the print button.

That’s so odd. :thinking:

Thats up here :up_arrow: @1theritzy

Hope that helps. :blush:

Not sure why Bubble is not opening up the editor to the right page from a link anymore. Just search the page ‘How_to_attach_file_in_the’ and it will pull up.

J8, you’re a star!

Thanks so much for completing a complete process for me! After detailed inspection I got it to work, and it works great. I learn a ton from you every time, with the complete version you made, such as how to use the hide button and loading image. All very helpful.

I never could have done it without you! :slight_smile:

As for Bubble not opening to the page, that’s my own fault. I clicked on the preview and that did not let me open the editor and I didn’t see the link to the editor because I had scrolled past it apparently.

:slight_smile:

Awesome! Glad that helped. :blush: