PHP Email script for multiple recipients

Edite the mail addresses as required , create the php file with this content below



<?php

$contacts = array(
"info@yourdomain.com.au",
"info@anotherdomain.com",
//....as many email address as you need
);

foreach($contacts as $contact) {

$to = $contact;
$subject = 'Stripe Event';
$message = 'hello there has been an event notice on your stripe account';
$headers = 'From: notifications@whomeveryouwish.com.au' . "\r\n" .
'Reply-To: webmaster@whocares.com.au' . "\r\n" .
mail($to, $subject, $message, $headers);

}

?>

  • php multiple recipient script, multiple recipients in email scri
  • 0 Bu dökümanı faydalı bulan kullanıcılar:
Bu cevap yeterince yardımcı oldu mu?

Related Articles

TONIDO

FEATURES HOW IT WORKS PRICING DOWNLOADS PRESS TONIDO DESKTOP FOR BUSINESS...

TONIDO BIZZ

  $99.00 TonidoPro is subscription software...

HP I3 DESKTOP

HP Compaq Pro 6300 C9J97UT#ABA Desktop PC - 3rd Gen. Intel Core i3-3240 3.4GHz, 6GB DDR3,...

EYE FI CARDS

Like this product? Help spread the word:      $59.00       Overview...

NEW SKYDOCK DOCUMENT / DATA STORAGE

Skydock Cloud Pricing We have a range of rates to meet your needs, as well as...