Textpattern CMS support forum

You are not logged in. Register | Login | Help

#91 2018-07-10 13:42:11

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 6,768
Website

Re: com_connect - form and contact mailer

It seems that it is working as we did not receive any spam since I installed it.


Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | NeMe @ github

Offline

#92 2018-07-10 14:40:44

Destry
Moderator
From: Haut-Rhin
Registered: 2004-08-04
Posts: 3,887
Website

Re: com_connect - form and contact mailer

colak wrote #312943:

It seems that it is working as we did not receive any spam since I installed it.

That’s automated spam, I take it.

Well, pap_cleaner seems like a must-have plugin then if one is going to use comm_connect at all. Stef will probably combine the two at some point, or rewire something similar. A mail form isn’t much good if it’s filling up your inbox full of spam. Might as well just put a raw email address online.

Or better yet. Just never be reachable by any contact at all. Period.

(But were enslaved to the money that being contactable potentially makes available… And to the laws that require being contactable.)


More trees, less people.

Offline

#93 2018-07-30 09:54:10

Gallex
Member
Registered: 2006-10-08
Posts: 1,017

Re: com_connect - form and contact mailer

Destry wrote #312947:

Well, pap_cleaner seems like a must-have plugin then if one is going to use comm_connect at all. Stef will probably combine the two at some point, or rewire something similar.

totally agree! spam is gone since i installed it.

i hope stef will do something with the file sending issue i described here
i just don’t receive files… am i only one?

Offline

#94 2018-07-30 12:14:43

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 1,502
Website

Re: com_connect - form and contact mailer

Yes, pap_cleaner (pap_comconnect) is a must have unfortunately. I have one smallish issue with it in that it uses inline style (style="visibility:hidden" on the wrapper @<div />), which makes browsers throw a fit when you use a very strict CSP. But that is easy to fix, by either 1/ loosen slightly the CSP to allow inline style or generate a hash for that inline style snippet, or 2/ modify the plugin to use a class instead.

Offline

#95 2018-09-13 08:20:10

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 6,768
Website

Re: com_connect - form and contact mailer

Bloke wrote #308142:

Gallex: Sorry for the delay. Try v1.0.1 and see if it fixes the file upload issue. It works for me with smallish limits, haven’t tried anything massive yet.

Hi Stef,

We are about to publish a call for entries and this extension would be excellent for us.

I noticed from Gallex’s post that the way to use it is <txp:com_connect_file label="Send file" max="8000000" /> but is there a way to restrict the file types to .doc, .docx, and .pdf?

>Edit: Also after a quick test, trying to send a small 18Kb jpg, returned the error Send file must not exceed 8000000..

Last edited by colak (2018-09-13 08:23:46)


Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | NeMe @ github

Offline

#96 2018-09-13 12:10:32

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

Re: com_connect - form and contact mailer

colak wrote #313978:

is there a way to restrict the file types to .doc, .docx, and .pdf?

Restricting file uploads? What are you, Axel Voss? 😂

You can use the accept attribute but it’ll only offer users a filter for those types – they can still use “All files” from the native file picker so you’ll need to sanitize the file extensions or (better) MIME type programmatically on reception.

trying to send a small 18Kb jpg, returned the error Send file must not exceed 8000000..

Drat, what is causing that? It always seems to work when I try it. Must be something I’m missing with some server setups or I’m just making an assumption in the code that is causing it to fall over. Annoying.


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

#97 2018-09-13 12:15:19

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 6,768
Website

Re: com_connect - form and contact mailer

Bloke wrote #313989:

Restricting file uploads? What are you, Axel Voss? 😂

You can use the accept attribute but it’ll only offer users a filter for those types – they can still use “All files” from the native file picker so you’ll need to sanitize the file extensions or (better) MIME type programmatically on reception.

Drat, what is causing that? It always seems to work when I try it. Must be something I’m missing with some server setups or I’m just making an assumption in the code that is causing it to fall over. Annoying.

I can give you access to my site if you want to test it in another environment… I think you have one… unless of course you forgot your pw.

> Edited to add that I am testing it by having the tag wrapped in the <txp:if_logged_in> tag.

Last edited by colak (2018-09-13 12:17:49)


Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | NeMe @ github

Offline

#98 2018-09-13 12:45:21

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

Re: com_connect - form and contact mailer

colak wrote #313991:

I can give you access to my site if you want to test it in another environment

Thanks, I’ve logged in.

Incidentally, how to use the accept attribute: stackoverflow.com/a/23706177


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

#99 2018-09-13 13:15:47

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

Re: com_connect - form and contact mailer

Bloke wrote #313995:

after a quick test, trying to send a small 18Kb jpg, returned the error Send file must not exceed 8000000..

On my own server, I’ve cloned your contact form (changed only the to address) and it successfully sent me a 128KB Word doc, except my email program thought it was 0 bytes long. Looking at the raw message, the entire mail and attachment are there, encoded, so I guess the headers or boundary tags are screwed up a bit which means mail programs get the wrong info.

When I’ve debugged that so I can successfully receive an email with an attachment, I’ll transfer that plugin to your site and then see if I can replicate the erroneous ‘exceeded file size’ issue there.


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

#100 2018-09-13 14:21:23

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

Re: com_connect - form and contact mailer

Yiannis, try that. I’ve sent a test file and it went through.

I’ll issue a new release imminently.

Note to self: don’t assume jQuery is loaded on the public site.


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