Answer the question
In order to leave comments, you need to log in
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]');
});
}
?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question