Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2016-03-30 20:48:43

alannie
Member
From: Minnesota, USA
Registered: 2005-09-15
Posts: 150

Paid gig to incorporate Postmark info into zem_contact_reborn 4.5.0.0

This is a fairly straightforward gig – we need for zem_contact_reborn 4.5.0.0 to send email via a client’s Postmark account. Would like the work completed by this Friday 4/1 if possible. Please email me your estimate. Thanks!

Offline

#2 2016-03-31 08:09:17

philwareham
Core designer
From: Farnham, Surrey, UK
Registered: 2009-06-11
Posts: 3,092
Website

Re: Paid gig to incorporate Postmark info into zem_contact_reborn 4.5.0.0

Hi, you might want to contact Stef (bloke) directly for this, as he is the maintainer/author of that plugin.

His details can be found here

Offline

#3 2016-03-31 08:36:48

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 8,458
Website

Re: Paid gig to incorporate Postmark info into zem_contact_reborn 4.5.0.0

alannie already contacted me, but I’m out of coverage for a while and haven’t been able to reply. I probably won’t be able to get to this until the end of next week at the earliest, but it depends on the scope.

My best guess is that Postmark is just being used as a mail delivery mechanism instead of the server’s own sendmail.

In that case, a simple plugin / module to hook into the zemcontact.deliver callback is all that’s required. Hard-code the API credentials in there, reformat the data passed into the plugin (3rd argument) into a suitable curl JSON request to the Postmark API, and return zemcontact.skip to tell ZCR that all is well and it should skip processing mail itself. Job done.

Is it anything more than that? If not, please send me the API credentials for your client’s Postmark account and I’ll see if I can whip something up for you today. Beyond that, sorry, you’ll have to find someone else to do it for you.

EDIT: see below for simple plugin. You can put the client API token in the code yourself where indicated.

Last edited by Bloke (2016-03-31 10:00:21)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#4 2016-03-31 09:58:54

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 8,458
Website

Re: Paid gig to incorporate Postmark info into zem_contact_reborn 4.5.0.0

@alannie. You could try the following plugin. Nothing fancy, it just does what I suggested above. Check the docs / plugin code to see where you need to add your client’s API token, and drop me a line if you have any issues or it needs to do anything more.

# Name: zcr_postmark v0.10 (compressed)
# Type: Public plugin
# zem_contact_reborn module to send email via Postmark
# Author: Stef Dawson
# URL: http://stefdawson.com
# Recommended load order: 5

# .....................................................................
# This is a plugin for Textpattern CMS - http://textpattern.com/
# To install: textpattern > admin > plugins
# Paste the following text into the 'Install plugin' box:
# .....................................................................

H4sIAAAAAAAAA41WbW/aSBD+Hin/YYUi2UhgXhIujXOtQom55JoXCubau6iyNvYYtrG9vt11
Eq7Kf7/ZBYNprj1QFMPsM287z8yYup2O+026R24toynUTqXb6bq1f0IR5FyqlIoHLfvFrdFC
zbkwgI5bmyiIyTl9kjwzonYJCArBtKSLoLlSudtqScRGBuqEPNWHx27tEYRkS2X03XY67dJ0
BDIULFer054OB9Ig5JmioQoE3HORkZRHRQJEcSIhiwiklCXkkVEyqoSNlkMeLbM66b5xawJm
DMMRQUiT5J6GD7ZVTdVqEAt9rVw5ESQM49RS7cSqn+7v7e/FRRbq4EhV0z6AR9UgB1Ll+D+i
itb3977t7xH8tFpkyJKEqDmT5ImpOX4Dgg4KmqzDxTQE+sKEHiAjoYAIMsVoIp21kakEMrqd
+Nf98YegP7oMfG/ik5ijEkjFshnJC4EBQalzQHMWLA2+JVb//eDcG/52cfn7h6vrm9vRx/HE
n/7x6fOff1kmL6OR00XCaYR4KgRd2PX1EYuJDWmuFrZJ786aA42wiNaXOysWPLW+1OtklXHV
1J01NKc6hIw3BeTJ4swiDpmBCnIBsW1JpqAQiblfrfpCIMFcf27sR1GUNr5P6c7yeVVR8TV2
A5kU918hVFWcLEWvwD48q/c8WlTR9+b35j6/IuvxVD8CyDQZ7dLA5moPVkmsb32TuNUPQ8iV
S2ieJyykmngtbc1qVEADJCzSpekvctgRegXZTM1doishlUggs02w9Sr4c7OkZ3Ni6Nn0NZuW
Wht2rVS2uVK2SQDP2HLStkIscbBqe2ubK0ju9wVLItMY4XR8RQT8XSCpCcXeNg3OFOFx3NAN
v+x1DU1BSjoDp0KUEC/ReGIZU3bJKP0xUgmK58o+CBtkgH5uR36AD2xwPaskDitMyimbGi9S
T6yWcWjtYmswnfi312Pv4xRbE63qdt1JUQOHl97V+aSxJM0uSmNv6I29cYPMi93g/nR844/7
N5Oh1lKigF30/Mtr73aK6XTau8AvfH904fXPtYuS2RtqmCIJUGWZ4BlCVN8GIB8GcwgfTJER
XIgMIhLxsEiRu9Vy80LlhSo7LIJlh6HKtkFNSCYxWHul0XznCcHFAOHbVCzRr3HkLU6wtvUK
vQrYQ2ovcMTjGMYxT59A8hTI0xyH74IXlgCSU6FJTCjOa5o6r60sM91aQfKB5dbpNvT1ePyJ
gVhT93sDm5//bWsHOy8/GtX/o4t6+LdazgrnlVnO+AZgdr1b4wL5spL1VrI4oTNZxaHqHJLc
iI7wZcKLcDxoruRJMWO4PnW59OiI9d5FgT57pEkB+v7N9l1vRqwQ1oZlkR6ZEDlkQh+hYswh
nwTuJ11EQc5+Vc+5W3kdeXemF3BKqCQZPmni7O2d8wwcHduhW0sjk8QhvsT0jk4Oj4/e9Nr3
3eMYur1e2O6ehMdtoN2T9qF+/3n5F9kgedSOCQAA

The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

Board footer

Powered by FluxBB