Answer the question
In order to leave comments, you need to log in
Why don't I receive emails even though there are no errors in the MODx log?
Hello!
Can you please tell me why emails do not come to the mail, although there are no errors in the MODx log, and QuickEmail returns a message about successful sending?
ajaxForm chunk code:
<form action="" method="post" class="ajax_form">
<div class="form-group">
<span class="error_name"></span>
<input type="text" class="form-control" placeholder="Ваше имя" name="name" value="">
</div>
<div class="form-group">
<span class="error_email"></span>
<input type="email" class="form-control" placeholder="Email" name="email" value="">
</div>
<div class="form-group">
<span class="error_message"></span>
<textarea class="form-control" rows="3" placeholder="Сообщение" name="message" value=""></textarea>
</div>
<input type="submit" class="btn btn-primary btn-block" value="Отправить"></input>
</form>
<h3>Сообщение</h3>
<p>От кого: </p><br>
<p>Email: </p><br>
<p>Текст сообщения: </p>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
Answer the question
In order to leave comments, you need to log in
Hi Hit Girl! If this question is still relevant for you, then there are 2 reasons:
1) letters can only be sent from a remote server, not from a local one (OpenServer, Denver ...);
2) in the snippet call, you must specify:
a) &emailTo=`[email protected]`
b) &emailFrom=`your_server_email`
Item "b" must contain a mailbox that you will create on the server where the site is located, for example, me on TheHost hosting in the admin panel, I opened the mailbox "[email protected]". Where the first part is my login. The second is the domain of my site ( darmenko.com ).
So I specified: "&emailFrom=`[email protected]`"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question