danielireson / formplug Goto Github PK
View Code? Open in Web Editor NEWForm forwarding service for AWS Lambda
License: MIT License
Form forwarding service for AWS Lambda
License: MIT License
I use Twitter Bootstrap with which I created some checkboxes. The checkboxes get ignored while sending the e-mail via Formplug.
I'm not very good at front-end, so what did I miss here?
Thanks.
<label for="autorijdenhinder" class="col-sm-3 col-form-label">Hebt u hinder tijdens het autorijden (meerdere antwoorden mogelijk)?</label>
<div class="col-sm-6">
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" value="Test1">
Concentratieproblemen en doezelen bij korte ritjes van max 30 min
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" value="Test2">
Concentratieproblemen en doezelen bij langere autoritten van min 30 min
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" value="Test3">
Concentratieproblemen en doezelen als bijrijder
</label>
</div>
<div class="form-check">
<label class="form-check-label">
<input class="form-check-input" type="checkbox" value="Test4">
Slaapmomenten tijdens autorijden
</label>
</div>
</div>
</div>```
Allow to set ReplyToAddress of the contact form to email address field in the form.
I think I'm a little confused. I've installed Serverless and setup my AWS credentials with it. Now I'm at npm install dependencies. Am I supposed to clone/copy the whole formplug-serverless repository into my project?
Lambda's standard version of Node is 12. this app is using version 8. Will there be an update?
Hi,
Are there any major Amazon-specific dependencies in the code rather than serverless.yml
structure and config.js
?
I would like to deploy this project to Scaleway which is compatible with Amazon and Serverless framework.
I understand that changing a little bit the .yml file should do the trick?
https://www.scaleway.com/en/docs/compute/functions/api-cli/fun-uploading-with-serverless-framework/
Hi,
Can I use input field name _subject
as the email subject?
Formplug seems to be rejecting redirects to IP addresses or to localhost
as invalid.
In my case, I'm using Zola, which in local development serves by default at http://127.0.0.1:1111. I've tried _redirect
value(s) like "http://127.0.0.1:1111/thank-you"
and "http://localhost:1111/thank-you"
and they've been fairly consistently rejected. This appears to be down to this regex:
It's not strictly necessary to get this working to verify the behavior I want in our production use-case, but it's an annoyance, and there may be other use cases where redirecting to an IP address or to localhost
are desirable.
Hello,
I'm having trouble getting this work. I've deployed the backend and I'm trying to test it via Postman. Here's what the curl call looks like:
curl --location --request POST 'https://hgwaf31jxa.execute-api.us-west-2.amazonaws.com/dev/?format=json' \
--header 'Content-Type: multipart/form-data; boundary=--------------------------505726920421207878101501' \
--form '[email protected]' \
--form 'message=test \
--form 'name=test' \
--form 'email=test'
The response is:
{
"statusCode": 422,
"message": "Invalid '_to' recipient"
}
I've completed my SES verification and also tried adding my email to the whitelisted domains array but to no avail. I've also tried using the encrypted email but that doesn't work either. Mind helping me out?
I followed this guide and keep getting Internal Server Error how do I resolve this ?
I am using this example
<form action="https://my api gateway url/to/my verified email address" method="post">
<input type="text" name="name">
<input type="submit" value="Send">
Even the form on your site is not working
Sorry for beginner question, but no experience with serverless concepts till now... :(
Tried to follow all instructions in this repos README and on the serverless site. config.json is all set and deploy worked. But when I send a test form to the url I get "Missing required request parameters: [format]"
Any idea or help with that, please?
Hi. Thanks for this great plugin, as well as the recent write-up explaining how it works!
I've been working on taking down some old drupal sites into HTML as they are no longer supported, and many may be easily hosted on S3. The problem with this is the contact form functionality, which formplug resolves very easily, compared to other more involved lambda setups.
However, some of our contact forms send to multiple email addresses. Is there a way to post a string of email addresses, or any plans to implement this feature?
Either way, much gratitude.
Conditionally switch FORM_Arn to route emails to different mailboxes based upon dropdown in the contact form
add optional google reCaptcha integration
Hi,
I've been setting up formplug for the second time. The first time was for my own website running on my own server and is working flawlessly.
Now i'm trying to add it to a friends website but i'm receving 403 error on form submit:
The error header seen is: x-amzn-errortype: MissingAuthenticationTokenException
And also when I try to call the API directly I get the same 403 error:
{
"message": "Missing Authentication Token"
}
I've got no clue where stuff is going wrong or what auth token I should add where to make it work. Any pointers and help is much appreciated.
Any thoughts about adding support for attachments?
I'd like to reference #19 but have this as a separate issue in-case someone has the same problem. I did follow your suggestion and added the header but I still seem to be facing issues.
Firstly, here's the curl call that I am using:
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode '[email protected]' \
--data-urlencode 'message=test' \
--data-urlencode 'name=test' \
--data-urlencode 'email=test'
This throws an error stating that I have not whitelisted this particular email. Well, the documentation states that "Whitelisted Recipients" are not required. Which is why I've chosen to leave them blank. Here's what my config.json
looks like:
{
"SERVICE_NAME": "karanr-form-backend",
"ENCRYPTION_KEY": "<key>",
"REGION": "us-west-2",
"STAGE": "dev",
"SENDER_ARN": "<arn>",
"WHITELISTED_RECIPIENTS": []
}
But, when I do make the call, I get an error saying:
{
"statusCode": 422,
"message": "Non-whitelisted email in '_to' field"
}
Also, I did try adding in my email to the whitelist like so:
{
"SERVICE_NAME": "karanr-form-backend",
"ENCRYPTION_KEY": "<key>",
"REGION": "us-west-2",
"STAGE": "dev",
"SENDER_ARN": "<arn>",
"WHITELISTED_RECIPIENTS": ["[email protected]"]
}
But, to no avail. I then get an error like so:
{
"statusCode": 500,
"message": "An unexpected error occurred"
}
Do you have any idea what's going wrong? Any suggestions?
Allow a checkbox field in the contact form to optionally also subscribe to a MailChimp list with the captured email field
Will it be possible to send HTLM-Mails with formplug in near future or are there restrictions at AWS?
Hello,
First, thank you for your project, it works great!
I was wondering, apart from the honeypot, did you think of any way to limit form submission (based on IP for example)?
Thanks again.
Hello everyone ๐
Does anyone has tried to change from reCaptcha to hCaptcha?
I've tried to do it but I'm missing something.
https://docs.hcaptcha.com/switch#serverside
I updated the site verify URL from https://www.google.com/recaptcha/api/siteverify
to https://hcaptcha.com/siteverify
. However, I couldn't find anything else to change.
Can anyone give some tips here?
Thank you!! ๐
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.