This code is trying to return the postmark.send
function to the client. This is not possible. Methods can only return JSON serializable values.
You should be able to use postmark's send
function inside the method body, though depending on its interface you might need to wrap it in a fiber.