Home Forums Newsletter Plugin Support custom form problem

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #17468
    derridon
    Participant

    Hi
    i am building a theme and i use this code in a certain place:

    <script type="text/javascript">
    //<![CDATA[
    if (typeof newsletter_check !== "function") {
    window.newsletter_check = function (f) {
        var re = /^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-]{1,})+\.)+([a-zA-Z0-9]{2,})+$/;
        if (!re.test(f.elements["ne"].value)) {
            alert("The email is not correct");
            return false;
        }
        for (var i=1; i<20; i++) {
        if (f.elements["np" + i] && f.elements["np" + i].required && f.elements["np" + i].value == "") {
            alert("");
            return false;
        }
        }
        if (f.elements["ny"] && !f.elements["ny"].checked) {
            alert("You must accept the privacy statement");
            return false;
        }
        return true;
    }
    }
    //]]>
    </script>
    
        <form method="post" action="http://localhost/ormove/wp-content/plugins/newsletter/do/subscribe.php" onsubmit="return newsletter_check(this)" id="newsletterform" class="form-inline">
      <div class="form-group">
        <label class="sr-only" for="exampleInputAmount">Amount (in dollars)</label>
        <div class="input-group">
          <div class="input-group-addon"><i class="fa fa-envelope"></i>
    </div>
          <input type="email" class="form-control input-sm" id="ne" name="ne" placeholder="you@gamil.com" required>
        </div>
      </div>
      <input class="btn btn-success btn-sm" type="submit" value="<?php pll_e("Join") ?>"/>
      <!-- <button type="submit" class="btn btn-success btn-sm"><?php //pll_e("Join") ?></button> -->
    </form>

    the form display correctly and it say that it sends, but when i check nothing was sent. i have set the SMTP for the moment on my gmail. the test email was sent correctly.

    am i doing something wrong?

    by the way how to create a custom page for the subscribe message?

    best regards

    #17470
    Stefano
    Keymaster

    Is the SMTP enabled?

    #17474
    derridon
    Participant

    Hi
    yeah, as I said: the test email was sent correctly.

    #17476
    Stefano
    Keymaster

    Test email from the SMTP uses the SMTP even if it is not enabled. Test emails from the diagnostic panel are sent without SMTP if it is not enabled. Could you take a screenshot of the SMTP panel?

    #17477
    derridon
    Participant

    hi
    i entered the panel and it was blanck so i entered the credentials again and got : The sender email address is not correct. but it is.

    i develop on localhost so how can i upload an image?
    in any case:
    i selected enabled for the SMTP
    smtp.gmail.com for the host
    465 for port
    SSL protocol
    then entered my gmail username and password ( just to test on development).

    #17491
    derridon
    Participant

    any help?

    #17502
    Stefano
    Keymaster

    Send the screenshot via mail to stefano@thenewsletterplugin.com.

    #17513
    derridon
    Participant

    have no idea why. entered to take a screenshot. tested again. and it works.
    by the way, two more questions: the site I am building use polylang for multiple languages. how can I stanslate all the messages and newsletters?
    another questions: how can I integrate all the messages with my theme?

    best regards

    #17521
    Stefano
    Keymaster

    Hi, there is no integration with multilanguage plugin right now. To have the newsletter messages in your theme, setup the Newsletter dedicated page on subscription steps panel.

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.