i had to tell you that if i use
smtp_mail ($to, $subject, $message, $headers);
so i get email with specific text, but my script should you use such form because i take different emails from txt file. But i try as an experiment such code (changed $to -> "
[email protected]")
smtp_mail ("
[email protected]", $subject, $message, $headers);
and get normal email.
there are different forms of script, for a example:
<?PHP
set_time_limit(0);
require_once("smtp_mail.php");
$to = file('emails.txt');
$sleep = 10;
$subject = 'Birthday Reminders for August';
$message = 'hi';
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From: Birthday Reminder <
[email protected]>' . "\r\n";
for ($i = 0; $i < count($to); $i+=10)
{
smtp_mail(implode(',',array_slice($to, $i*10, 10)),$subject,$message,$headers);
sleep(10);
}
?>
the main task is
1) get emails from txt file or diferent way.
2) after some emals 've sent take a pause for 10 sec. and so on.
But when i use "$to" in php script i get email this specific text without subject.