G
G
GrimJack2017-08-08 17:19:55
Laravel
GrimJack, 2017-08-08 17:19:55

Why is sending data to octobercms buggy?

On click I send data from the page

$.request('onSend', {
                data: {
                    message: mail
                },
                success: function (data) {
                    this.success(data);
                    $.oc.flashMsg({text: 'Данные успешно отправлены'});
                }
            })

<?php
function onSend(){
$mas = ['html' => post('message')];
Mail::send('empty', $mas, function($message)
{
$message->to('[email protected]');
});
}
?>

1) Oktober thinks for a long time (it can think up to 30-40 seconds) the problem is clearly not in the server, they tried to change it to many times more powerful
2) sending occurs twice. the problem is not with the mouse or anything else. I send once and receive 2 identical letters
What could be the problem? google didn't help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pantagruel964, 2017-08-08
@pantagruel964

The letter is sent. Put the shipment in the queue.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question