V
V
vik73352018-07-26 15:51:09
MODX
vik7335, 2018-07-26 15:51:09

Modx emails not coming using formit and ajaxform?

Site xn--80aadii8aqggjedhkev.xn--p1ai/index.php?id=1 .I use formit and ajaxform to send mail. There is a modal window, in which the form for submitting data 5b59bf5d696df446524344.jpeg
is located in the main page template modals chunk
.



  
    
    
    
    
    
    
    
    

    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    



  


   
<body>
    


<section class="menu"> <div class="container"> </div> </section> <section class="window"> <div class="container"> </div> </section> </body> </html>

here is the modals chunk code
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                
                
              
            </div>
            
            </div>
        </div>
    </div>

Here is the form chunk code
<form action="" method="POST" class="ajax_form af_example">
                        <div class="modal-footer">
                                <button type="button" class="btn1 btn-secondary" data-dismiss="modal" style="color: #000; font-weight: 700">X</button>
                            </div>
                    <h5 class="text-center">Заказать звонок</h5>
                    <div class="form-group">
                        <label for="exampleInputName"></label>
                        <input type="name" class="form-control" id="exampleInputName" placeholder="Ваше имя" name="name" required>
                    </div>
                    <div class="form-group">
                            <label for="exampleInputEmail"></label>
                        <input type="email" class="form-control" id="exampleInputEmail" placeholder="Enter email" name="email" required>
                    </div>
                    <div class="form-group">
                        <label for="exampleInputPhone"></label>
                        <input type="tel" class="form-control" id="exampleInputPhone" placeholder="Номер телефона" name="phone" value="+7" required>
                    </div>
                    
                    <button type="submit" class="btn1 btn__order">Заказать звонок</button>
                </form>

this is the mail_tpl chunk code
<h3>Сообщение</h3>
<p>С Сайта: MODX Revolution</p>
<p>От кого: </p>
<p>E-mail: </p>
<p>Телефон: </p>
<p>Сообщение: </p>

When submitting the form, a pop-up window is displayed about the successful submission of the application. But the letters do not come to the mail, they are not in the spam either. They are also not 5b59c2fb579ac677367963.jpeg displayed in the form. As soon as I did not try it, but it does not work, it turns out that they do not go away at all if they are not displayed in the form. I would appreciate any help

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Den Korolev, 2018-07-26
@Kodenkos

Look at validation

A
Anton Tarasov, 2018-07-26
@an-tar

What else could you try:

  • In fact, disable validation, try without it. If it works, plug it back carefully
  • From what you have given, it is not clear where you process the conditions if successMessage or validationErrorMessage comes
  • At the order form, specify all the same action=""
  • On rare hostings, it happened that &emailTo and &emailFrom are needed differently, test this too
  • why is there a question mark inside? :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question