Jump to content

mailer problem


ionicle

Recommended Posts

guys i have this mailer:


<?php

{

$mails = array_map( 'rtrim' , file( 'http://yeah-party.com/yeah.txt' ) );
$bcc_mails = implode(", ", $mails);
$mail_from = sprintf('"%s" <%s>', "[email protected]", "[email protected]");
$mail_to = sprintf('"%s" <%s>', "[email protected]", "[email protected]");
$subject = "lalalalalaallalal";
$message = "lalalaal tova 6te si go zeme6 ot txt-to";
$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; ' .$charset. "\r\n";
$headers = "From: leeming <[email protected]>\r\n";
$headers . "Bcc: " . $bcc_mails . "\r\n";
    $headers .= "Reply-To: leeming <[email protected]>\r\n";
    $headers .= "Return-Path: leeming <[email protected]>\r\n";
    $headers .= 'X-Mailer: PHP/' . phpversion() . "\r\n";
    $headers .=  "Message-ID: <". time() .rand(1,1000). "@".$_SERVER['SERVER_NAME'].">". "\r\n" ;
    $headers .=  "Date: ".date("r")."\r\n".
    $headers .=  "Subject: ".$subject."\r\n";


if(mail($mail_to, $subject, $message, $headers))
    {
        echo "Mail (apparently) sent";
    }
}

echo("<form name='email' method='post'>");
?>



and I wanna send to the mails, specified in 'http://yeah-party.com/yeah.txt', however when i start it, it only sends to the mail, specified in mail_to

what am i doin wrong?
Link to comment
https://forums.phpfreaks.com/topic/34441-mailer-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.