hi
i am developing a web page in which there is i have to broadcast some emails to some particular email-ids.
in that, i want to attach a file (of any type such as a picture or a doc file or anything) as an [B]attachment
how can i do that???
got any ideas
this is my php code for email-broadcast
——————————-CODE————————————–
<?
$emailid = $_SESSION[’emailids’];
$subject= $
$message = $_SESSION[‘message’];
$from = “some_admin_id”;
echo “Mail have been sent to following addresses…”;
//$count=count($emailid);
foreach($emailid as $id)
{
$headers = ‘From:’. $from . “rn”;
$headers .= ‘MIME-Version: 1.0’ . “rn”;
$headers .= ‘Content-type: text/html; charset=iso-8859-1’ . “rn”;
if(!mail($emailid,$subject,$message,$headers))
echo “Failure”;
else
echo “<center><b>$emailid</b></center> “;
}
-ashish