Giter Club home page Giter Club logo

octobercms-contact-form's People

Contributors

grofgraf avatar

Stargazers

 avatar

Watchers

 avatar

octobercms-contact-form's Issues

Submitting form refreshes page

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>

Email is sent twice

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

Auto-reply sending to wrong email

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')); } });

Error - Address in mailbox given [] does not comply with RFC 2822, 3.6.2

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

Message Label ( Text for label.message )

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.