I am trying send multiple emails to database.
Is running OK using this:
CUSTOM CODE In SUBMIT-----
But i have two questions:
1. If i send 100 mails can i have problems
2. But i would like show the result at same window one to one.
Like this:
echo $mail . "send to $customer , OK
--- mail send to mail1@domain.com ---
--- mail send to mail2@domain2.com ---
--- mail send to mail3@domain3.com ---
Finish (3 mails sended)
Is running OK using this:
CUSTOM CODE In SUBMIT-----
$results = array();
foreach ( $form->data['coles'] as $v ) {
$to = $v[co_m_director];
$subject = "My subject";
$txt = "Hello world!";
$headers = "From: noreply@programasi.org" . "\r\n";
mail($to,$subject,$txt,$headers);
But i have two questions:
1. If i send 100 mails can i have problems
2. But i would like show the result at same window one to one.
Like this:
echo $mail . "send to $customer , OK
--- mail send to mail1@domain.com ---
--- mail send to mail2@domain2.com ---
--- mail send to mail3@domain3.com ---
Finish (3 mails sended)
This topic is locked and no more replies can be posted.