php attachment files

majidf1

Member
سلام به همه دوستان..
اگه برای شما مقدور هست کد ارسال فایل به میل یا همون (attachment) با php رو بگید
پیشاپیش سپاس گذارم..
 

ARTA_ADOBE CO

Active Member
PHP:
 // Add file attachment to the message
 $message .= "Content-Type: ".$fileatt_type."\r\n" .
             " name=\"".$fileatt_name."\"\r\n" .
             "Content-Transfer-Encoding: base64\r\n" .
             "Content-Disposition: attachment;\r\n" .
             " filename=\"".$fileatt_name."\"\r\n\r\n" .
             $data."\r\n" .
             "--".$mime_boundary."\r\n";


تابع کامل ارسال میل با فایل ضمیمه : http://ir.php.net/manual/en/ref.mail.php#77405
 
آخرین ویرایش:

جدیدترین ارسال ها

بالا