Okay, thanks @julian
This isn't ideal considering future updates, but it is a viable solution.
[nodebb-plugin-contact-page] A contact form
robin4002 last edited by robin4002
NodeBB contact page
This plugin adds a page to your forum with a contact form. This allows your user to contact you without giving directly your contact email address. To reduce spam, the form also support google recaptcha v2 (optional).
npm install nodebb-plugin-contact-page
In the admin CP, you should define the email address where the mail should be send.
Optionally, you can add a footer (appended at the end of the message send by the user) and you can set the public and private key for Google recaptcha.
Using the widget system of NodeBB, you can add a link to the page in the forum footer (or anywhere you want) with this html code:
<a href="/contact">Contact us</a>
And the result mail, preview in Thunderbird:
The mail is generated using a template, which can be modified in the AdminCP.
Really good plugin, +1 from my side.
However can't see possibilities to edit the template, in the Admin panel I can see only main settings and Google re-captcha settings, using Node 1.7.5.
Also, is it possible to embed this contact form into posts?
robin4002 last edited by
The template can be edited in the same place as other email template (Settings -> email
yourforum.tld/admin/settings/email), you have to select the template
It's not possible to embed it inside a post, sorry.
Hi - I'm a little late to the plate here - sorry
Would it be possible to provide hCaptcha for this instead of reCaptcha ?
I am even later...
I would like this to work...All seems ok...but when i do a test and click on send nothing happens???
Any ideas folks
Just one quick link: https://intergen.org/blog/hcaptcha-versus-recaptcha
Project Honeypot is even better than captchas. Its operation is invisible and behind the scenes. .... There is also no data collection or third party profit motive. It is a community of web developers helping each other identify and block bad actors online.
@gotwf yeah, I'm using this as part of
nodebb-plugin-spambegoneand it'd be great to see that extended here
Well the captcha is working fine.
I dont need honeypot. I just want the message to send when I click send
@sampo2910 is there nothing in the developer console of the browser? Like an error message or anything
Strangely not....I checked..I will double check and look again now.
No errors ??
@sampo2910 long shot, but are any errors shown in the SMTP sending server's logs ? In some cases, this is enough to prevent the form from being submitted.
I am getting this now with the normal mail? This was a test.
I am using mail.com as an email and Custom settings in ACP. It was working before and now not?
..I dont want my personal emails being used.
Maybe someone can recommend the best way to do this? Which email provider is best and fully working?
2021-09-09T12:32:18.483Z [4567/215286] - [31merror[39m: admin.email.test
Error: Unexpected socket close
at Timeout._onTimeout (/xxxxx/xxxxx/nodebb/node_modules/nodemailer/lib/smtp-transport/index.js:189:31)
at listOnTimeout (internal/timers.js:557:17)
at processTimers (internal/timers.js:500:7)
@sampo2910 That timeout typically means the service you are attempting to connect to has not responded (it's known as a semaphore timeout) within a set period of time (with TCP, it's typically 30 seconds). I'd check the mail service you are connecting to, so if it's mail.com then you could try a direct connect from the server itself using telnet, so
telnet server.mail.com 25- obviously, you need the correct host name and port, but this is an example. If it connects, you'll get an SMTP greeting banner. If it doesn't connect, then this is likely the issue, and will need to be resolved before this plugin will work correctly.
@phenomlab except port 25 is server to server, the plug-in will be connecting as a client over tls or starttls on port 465 or 587. So try one of those.
@phenomlab my mistake, I'm still on my first coffee
Sampo2910 last edited by Sampo2910
Instead of using a Custom service like mail, can I not use an iCloud alias for example?
That would be easier. Choose iCloud in the service and login with the alias? (not sure if need apple app specific password with that)
If these are in the ACP they should work right
@sampo2910 Yes, that should work also. You'll probably still need to select "Custom" in the drop down, but I see no reasons why that won't work. I use my own server's SMTP for notifications, and do it in exactly the same way, so I know it works.