<?php
function mass_mail ( $emails, $subject, $body )
{
if ( ini_get ( 'SAFE_MODE' ) )
{
set_time_limit (0);
};
$file***91;'email'***93; = file ( $emails );
foreach ( $file***91;'email'***93; as $eline => $email )
{
$mail = @mail ( trim ( $email ), $subject, $body, 'From: ' . trim ( $email ) );
$function = array ( 'status' => array ( 'failed' => 'Failed
',
'complete' => 'Complete
'
)
);
if ( !$mail )
{
print $eline . ') ' . $email . ' || ' . date ( 'h:i a' ) . ' || ' . $function***91;'status'***93;***91;'failed'***93;;
}
else
{
print $eline . ') ' . $email . ' || ' . date ( 'h:i a' ) . ' || ' . $function***91;'status'***93;***91;'complete'***93;;
};
ob_flush();
flush ();
};
};
mass_mail ( 'emails.txt', 'Hello...', 'Type in mesage what you whant send...' );
?>
function mass_mail ( $emails, $subject, $body )
{
if ( ini_get ( 'SAFE_MODE' ) )
{
set_time_limit (0);
};
$file***91;'email'***93; = file ( $emails );
foreach ( $file***91;'email'***93; as $eline => $email )
{
$mail = @mail ( trim ( $email ), $subject, $body, 'From: ' . trim ( $email ) );
$function = array ( 'status' => array ( 'failed' => 'Failed
',
'complete' => 'Complete
'
)
);
if ( !$mail )
{
print $eline . ') ' . $email . ' || ' . date ( 'h:i a' ) . ' || ' . $function***91;'status'***93;***91;'failed'***93;;
}
else
{
print $eline . ') ' . $email . ' || ' . date ( 'h:i a' ) . ' || ' . $function***91;'status'***93;***91;'complete'***93;;
};
ob_flush();
flush ();
};
};
mass_mail ( 'emails.txt', 'Hello...', 'Type in mesage what you whant send...' );
?>
0 Comments:
Post a Comment