openfoodfoundation / sib-discovery-components

Development and application of Startin'Blox Discovery components, initial use in Discover Regenerative www.regenerative.org.au
2 stars 0 forks source link

Send message to producer #24

Open kirstenalarsen opened 8 months ago

kirstenalarsen commented 8 months ago

@JbPasquier: About the contact form, I never tested it from the component, because - well - it seems that it should send emails to your customers. Can you confirm that it works properly?

@mkllnk set up an n8n thing that has a webhook that puts a thing in our airtable as well

Actions:

Contact, NOT store the message

RachL commented 8 months ago

Should this one be move to the sib-discovery repository @mkllnk ?

mkllnk commented 8 months ago

Yes, transferred here now.

kirstenalarsen commented 8 months ago
mkllnk commented 7 months ago

This seems to work now. Since we are not live yet, the emails don't go to producers but to hello@regenerative.org.au. You can test now.

mariocarabotta commented 7 months ago

Inline error when trying from WP

Image

Inline error + print bottom left when trying from SiB test environment

Image

JbPasquier commented 7 months ago

@mkllnk

Request datas:

-----------------------------389609987016744613361611265732
Content-Disposition: form-data; name="name"

Test
-----------------------------389609987016744613361611265732
Content-Disposition: form-data; name="type"

household / consumer buyer
-----------------------------389609987016744613361611265732
Content-Disposition: form-data; name="from"

test@test.test
-----------------------------389609987016744613361611265732
Content-Disposition: form-data; name="text"

test
-----------------------------389609987016744613361611265732
Content-Disposition: form-data; name="username"

-----------------------------389609987016744613361611265732--

Headers does include Content-Type: multipart/form-data; boundary=---------------------------389609987016744613361611265732.

Response:

{message: "Error in workflow"}
mkllnk commented 7 months ago

Ah, thanks. If you try again, it shouldn't raise any errors.

mkllnk commented 7 months ago

@mariocarabotta You can go ahead again with testing.

@rioug Google SMTP started refusing the messages again yesterday and didn't recover from that. I don't know why it's happening but I replaced the SMTP node now with a Gmail node in n8n. It's authenticating via OAuth and seems to be reliable.