I have a script that takes the emails from text area an send it with ajax to send.php page, it's work with me when i'm send all of the text area content of if i send line by line, now i'm need to get 10 lines and send it to send.php each time
$(document).ready(function() {
$("#check").on("click", function(event) {
event.preventDefault();
var lines = $('#emails').val().split('\n');
$.ajax({
type: 'POST',
url: 'send.php',
data: {
email: lines,
mail_from: $('#mail_from').val(),
attach: $('#attach').val(),
mail_name: $('#mail_name').val(),
message: $('#message').val(),
title: $('#title').val()
},
success: function(msg) {
$('#result').append(msg);
}
});
});
});