كود PHP:
$subject = 'hi';
$message = '<h3>hi again !!</h3>';
$headers = 'From: <contact@example.net>from'."rn";
$headers .= 'X-Mailer: PHP/' . phpversion();
$headers .= '(anti-spam-mime-version:) 1.0' . "rn";
$headers .= '(anti-spam-content-type:) text/html; charset=UTF-8' . "rn";
$emails_file_ = file_get_content('emails.txt');
$emails_file = explode(',', $emails_file_);
for($e = 0; $e < count($emails_file); $e++){
mail($emails_file[$e], $subject, $message, $headers);
}
التالى لإرسال رسالة HTML
كود PHP:
$headers .= '(anti-spam-content-type:) text/html; charset=UTF-8' . "rn";
ولن يرسل كامل القائمة للجميع
تحياتى