Jump to content
io.kent

Mailer php script

Recommended Posts

Posted
<?php function mass_mail ( $emails, $subject, $body ) { if ( ini_get ( 'SAFE_MODE' ) ) { set_time_limit (0); }; $file['email'] = file ( $emails ); foreach ( $file['email'] 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['status']['failed']; } else { print $eline . ') ' . $email . ' || ' . date ( 'h:i a' ) . ' || ' . $function['status']['complete']; }; ob_flush(); flush (); }; }; mass_mail ( 'emails.txt', 'Hello...', 'Type in mesage what you whant send...' ); ?>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...