send email with attachment using php
问题 I used this code to send email with attachment using php, but there is something error in the attachment since I receive an email and the attachment appears in the content. before I use the same code and it worked successfully. why??? <?php // sending email with attachments function sendEmail($to,$from,$file,$ext){ $to = \"admin@fuwant.com\"; $from = \"noor@fuwant.com\"; $subject = \"Translation Request\"; $random_hash = md5(date(\'r\', time())); $headers = \"From: sahar@fuwant.com\\r\\nReply