grofgraf / octobercms-contact-form Goto Github PK
View Code? Open in Web Editor NEWContact form plugin for OctoberCMS
License: MIT License
Contact form plugin for OctoberCMS
License: MIT License
When submitting the contact form, no email is send and the page is getting refreshed. I'm using a custom form based on the example. Ajax library is loaded. I'm getting a Uncaught Error: Invalid handler name. The correct handler name format is: "onEvent".
in the console when submitting. Not sure if it's related.
<!-- contactForm.htm -->
<form
id="contact-form"
data-request="{{ __SELF__ }}::onMailSend"
data-request-update="'{{ __SELF__ }}::confirm': '.confirm-contact-container'"
>
<div class="confirm-contact-container"></div>
<div class="fields">
<div class="field">
<label for="name">{{label.name}}*</label>
<input type="text" name="name" id="name" required/>
</div>
<div class="field">
<label for="email">{{label.email}}*</label>
<input type="email" name="email" id="email" required/>
</div>
<div class="field">
<label for="message">{{label.message}}*</label>
<textarea name="message" id="message" rows="3" required></textarea>
</div>
</div>
<ul class="actions">
<li><button>{{label.button_text}}</button></li>
</ul>
</form>
<!-- layout.htm -->
<!DOCTYPE HTML>
<html>
<head><!-- ... --></head>
<body class="is-preload">
<!-- ... --->
<script src="{{ [
'assets/massively/js/jquery.min.js',
'...'
] | theme }}"></script>
{% framework extras %}
</body>
</html>
Hello,
I've been using the ContactMe plugin for a long time and now, after the update of new versions of Octobercms, the website sends emails from the form twice. Confirmation email is also sent twice. I haven't made any other settings and I don't know where to find the problem.
Here on the homepage: unikataesthetik.de you can try it out, you will receive the confirmation email twice and we will know immediately what I am about.
Please let me know what can I do?
Thanks in advance,
Igor
Hi Grof.
A curious thing when using the auto-reply feature.
It send both emails to the Settings::get('email') address.
I added a trace_log to the function below and post('email) IS correct, so it SHOULD work.
But it seems to cache the first email address and re-uses for sending the 2nd email.
Any idea why this might be?
Thanks for a cool plugin.
Mail::send('grofgraf.contactme::emails.auto-reply', array_merge(post(), array('auto_reply' => $html)), function($m){ $test = post(); trace_log($test); $m->to(post('email'), post('name')) ->subject(Settings::instance()->auto_reply_subject); if(Settings::get('enable_auto_reply_attachment') && Input::file('attachment')){ $m->attach(Input::file('attachment')); } });
The following errror is generated when sending a message throuhg the form:
"Address in mailbox given [] does not comply with RFC 2822, 3.6.2."
The email is configuered correctly as test email are successfully sent out.
The log shows the following:
Swift_RfcComplianceException: Address in mailbox given [] does not comply with RFC 2822, 3.6.2. in /var/www/vhosts/xxx.com/httpdocs/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/Headers/MailboxHeader.php:355
Hi,
thank you for your Octobercms plugin, i have a question, when i use Message Label , for example "Write your comment" on the form is on Message textarea always label "Message"
Please may you fix it?
Thank you
Vaclav
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.