Comments (6)
Please go to the backend Settings -> Event Log. There should be error record. Copy and paste error message and stack trace.
In new version to_email
and to_name
field are replaced with repeater recipients
field.
I think you can remove this boot method and use Autoresponder feature, where you can specify which fields to use and even the mail template.
from formbuilder-plugin-public.
If you want to use boot
method to change recipients than this is the code to use now:
\Event::listen('formBuilder.beforeSendMessage', function ($form, $data) {
$form->recipients = [
[
'email' => $data['recipient_email'],
'recipient_name' => $data['recipient_name'],
]
];
});
from formbuilder-plugin-public.
Hi @mplodowski,
Thanks for your speedy response.
There was no event logged for this error.
Thanks also for the updated boot
method snippet. Because the email recipient will always need to be dynamically injected I have gone for this method to override the default recipient, preventing two emails being sent.
Cheers
from formbuilder-plugin-public.
Without seeing error message there is very limited way to help you.
The only way to see this error is to enable APP_DEBUG = true in .env file.
You can also run: composer update
in project root.
The last resort should be reinstalling plugin, but can cause data loss.
from formbuilder-plugin-public.
Sorry, I wasn't clear. I'm not receiving the error anymore. I have updated my boot
method to the one you provided, and removed un-required recipient repeaters that had been generated after upgrading to 2.1.0. I think the error i was receiving was due to a 'new recipient' not having an email address defined.
Thanks
from formbuilder-plugin-public.
Super! I am glad it works now.
from formbuilder-plugin-public.
Related Issues (20)
- Placeholder in textarea not showing HOT 1
- Forms not working after update HOT 1
- Questions to file uploader HOT 1
- Error: Trying to access array offset on value of type null HOT 2
- [QUESTION] About the Export function HOT 2
- [ERROR] Migration failed. Check output above HOT 4
- File Upload - Required HOT 2
- Success Message Not displaying after form submit HOT 1
- Class October\Rain\Support\Facades\Schema Not Found OctoberCMS v3.0.16 HOT 1
- Using static pages variable field for selecting a form HOT 1
- Support October v3 BETA HOT 2
- htmlspecialchars() expects parameter 1 to be string, array given HOT 8
- Contact Form Sent Successfully but failed to receive the email HOT 8
- Regex validation doesn't work HOT 2
- Geolocation field type HOT 7
- Duplicate form with no field types HOT 1
- A 2nd FormLog is created when SendEmailMessage::sendAutoresponderMessage() is called HOT 2
- Form submit 500 error HOT 1
- Array to string conversion in _raw_fields_popup.htm HOT 1
- File uploader field not work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from formbuilder-plugin-public.