thanks for all help i am not doing nothink wrong i have read lots know and theres a rule that if you try to send messages and attachments with php your heading for a headake and just use a url to put the attachment within.
so the way i wanted to setup is not pratical unless you no how to but i dont so for example .
these two emil example are correct.
//send a email normally.
if you nedd to add a pic text file ect ect use a url in the message varable.
$message="hi there i am redarrow";
echo "Mail Problam";
echo "Mail Sent";
//send a attachment file.
$subject="My news added text file to read";
$headers="content-disposition: attachment: filename=john.txt\r\n ";
echo "email not sent";
echo "email sent!";
admin can you kindly delete my proper email address in the post from other user thank you.