Richer Postmark emails plugin ✉ [Update of 16 march 2021]

Hi @gyangting,

You can actually easily accomplish that using the Postmark API with the Bubble API connector

I thought so,. I’m just wondering how I can separate stats per user, as my app allow users to send emails to their customers, using just one postmark account. It’s like a mini mailchimp.

Hi @vini_brito,

Can you give directions as to how to use the Postmark - Send email DEBUGGER action? In particular, how and where the values are returned. I implemented it in a recursive backend workflow and I can’t figure out how to see these values.

I made a mistake earlier in the recursive flow and sent 7000 emails inadvertently, I’d really like to avoid that again and it feels like Postmark - Send email DEBUGGER could help.

Thanks,
Guy

Hi @vini_brito , Postmark returns an error for hard bounces and that stops the backend workflow altogether.

How can I have the recursive workflow continue beyond the hard bounce error? More generally, how does the plugin handle errors?

I do not know if your Postmark - Send batch email action handle hard bounce error, but even if it does, I can’t use it because my clients send more than 500 emails at a time.


Apparently, there’s an option in Bubble to let a workflow continue when an external API has an error.

Is this options also available for plugins managing external APIs?

Thx,
Guy

Hi @vini_brito

I am attempting to use the plugin to send an email with a file attachment, however, the dynamic expression which evaluates to a file is not being accepted by the plugin workflow action file(s) field.

It seems as if that field is set to only accept a list of files. When working with the ‘file’ data type as is necessary per the documentation, there is no operator to ‘convert to list’ when attempting to send just a single file as an attachment.

Do you have some workaround for this so that it would be possible to send a single file as an attachment?

Screen Shot 2022-05-03 at 11.58.04 PM
Screen Shot 2022-05-03 at 11.57.58 PM

1 Like

@boston85719
You can just not use the :first item operator :blush:

Sorry @vini_brito I might not have explained the issue properly.

When I am attempting to send a single file as an attachment, whether it comes from a search or is the result of a previous step when I created a file, I am not able to put the single file into the file(s) attachment input on the plugin workflow as it seems it is set to only accept a list and doesn’t allow for sending a single file. So, when I want to send just one single file, and not a list of files, I am not able to as the dynamic expression when sending a single file in doesn’t work.

Do you have a workaround so that I can send a single file?

I have a javascript to Bubble element set as file. Then trying to send that file through the workflow in the postmark email workflow doesn’t accept, however, the bubble email workflow accepts it.



Screen Shot 2022-05-04 at 4.11.33 PM

Well, in that case, won’t the “:converted to list” appear? Or, what happens if you check “value is a list” in the “JS to Bubble” element?

This is not an option that is provided for some reason.

I get a workflow error for the plugin.

Plugin action Postmark - Send email error:
FetchError: request to https://q/ failed, reason: getaddrinfo ENOTFOUND q
at ClientRequest. (/var/task/node_modules/node-fetch/lib/index.js:1491:11)
at ClientRequest.emit (events.js:314:20)
at TLSSocket.socketErrorListener (_http_client.js:427:9)
at TLSSocket.emit (events.js:314:20)
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
at processTicksAndRejections (internal/process/task_queues.js:84:21)

Error: Outer Error (see above for inner error)
at Block.wait (/var/task/u.js:420:34)
at Object.async_fn [as async] (/var/task/index.js:316:35)
at eval (eval at build_function (/var/task/index.js:86:21), :37:39)
at /var/task/index.js:349:23
at run_fn (/var/task/u.js:594:18)

Seems like the JS to Bubble isn’t outputting a file then :stuck_out_tongue: but rather this “q” thing, or a single string. Inspect that output, maybe the answer is there.

I’m not sure if it is outputting a file…what I can see though is when using a dynamic expression to reference the JS to Bubble output it is evaluating to a file but the expression is red as the input for the plugin doesn’t accept a single file and only allows for a list of files.

Screen Shot 2022-05-05 at 4.17.41 PM

In the event that I attempt to use the plugin workflow with a dynamic expression referencing a file uploaders value, the same issue is present, which is that the input on the plugin doesn’t allow for a single file to be attached.

Screen Shot 2022-05-05 at 4.19.40 PM

Do you happen to know why a single file is not capable of being attached? Or possible a workaround to get a single file to be accepted?

Try to not focus on changing the plugin to accept a single file instead of a list :yum:
It is trivial to provide it with a list even if what you have is a single file at first.
Create a custom state, make it a list of files and then use “add item to list” to add that file to that custom state.

Thanks for the tip. That is the type of work around I was having a hard time to think on.

1 Like

Is it possible to design the email template using a Bubble page?
With the new responsive engine, this would be incredibly useful, especially since Postmark’s template editor is very difficult to work with.

I created an example here

I’ve tried to extract the html using the inspect feature from Chrome, but when I paste the html into the Rich Postmark plugin, the font styles are missing and everything aligns to the left.
If I try to paste it into the template editor in Postmark it just throws up errors.

I want to use transactional emails for my current user but I don’t know how to pass the variables to the Postmark - send email action.
It looks like the variable fields are only available on the batch email action.

Hi thanks for this amazing plugin!
Having a small issue with privacy rules and sending batch emails.

When a user makes a post on my website, I have a workflow that sends a batch email notification to all other users that a new post was made. Unfortunately, the batch email is only sent when my privacy rules allows everyone to access the email addresses of users.

Is there a way to send a batch email without having to check the box in Privacy Rules to expose email addresses? Thanks for any tips

*FIXED MY PROBLEM, all good.
Solved by:
Made a backend workflow that sends the batch email when database changes, rather than a workflow on the actual page that would trigger the workflow.

1 Like

How do we access the head? There is only an HTML body field. I would like to insert google fonts, but am unable to. How can I add this?

@vini_brito great work on this plugin!

Is it possible to run both Transactional and Broadcast Streams in parallel? I’ve tried to set both up (‘Send email’ and ‘Send batch email’) but all emails are going through my Default Transactional Stream in Postmark?

Hello! Yes, it is possible, make sure you read the instructions inside the workflow action interface (:

Ah, my bad - I’m not sure how I missed that!

Thanks for getting back to me! :grinning_face_with_smiling_eyes:

1 Like