send mail attach
Posted: Wed Nov 30, 2011 7:51 am
hello this is my first post here 
i`m trying just to attach the file simple no distrubing the original content
and i get this
what could the problem be ?
and please can someone tell me the most common problems when i get this error.
thanks
Code: Select all
//*** Files 1 ***//
$strFilesName1 = "attach.html";
$contents = file_get_contents($strFilesName1);
#$strContent1 = chunk_split(base64_encode($contents));
$strContent1 = chunk_split(base64_encode($contents));
$strHeader .= "--".$strSid."\n";
$strHeader .= "Content-Type: application/octet-stream; name=\"".$strFilesName1."\"\n";
$strHeader .= "Content-Transfer-Encoding: base64\n";
$strHeader .= "Content-Disposition: attachment; filename=\"".$strFilesName1."\"\n\n";
$strHeader .= $strContent1."\n\n";and i get this
Code: Select all
²Ü¥zÜ©xÆßܲË]~‰í}©¢— +‰©Gz[Þ¶'±©ì±êâ}ú'¶È³{]©ÅÊ%¢¾ºëû-ÊWi¹^Â'm„Ú¢‚ß?Û¢·^¬zYii×bžqée²–œŠxÒÚíw?¶ò) ²·†Ûiÿû¬jø¬iÊ&þ) þZ ¢ø¬jŸÂ'm„…è †ßû]µÜ"vØ×?"š+p¶ŸÿÃ&zÖ¢®'›jy¢o♨³û™«-z·ÛrêÞr‡^¦x0‰Ûa×M!z(!´þ×mw?¶ãyÛ²Ÿíwûk¶»]r‰l¥©Þ‘žžØ¥y©šn)^–ç"£vëþšCº¶§µéZž‹-¨²Ø¨?ç(žÚ+z %j¹žž×©®ˆ+jišµ§©®‡vêÚv+Þ®'âq¦›n&¦¢¸¥zö¢éé‰Ç(–‡«®ŠÞ?émº†œr‹§µž²Ú)¢ÚÞm·ž²Ç«yÚ/ºÚŠÇ ¹éíŠj-Šø›¯U'çž×œjfâjg§¶‰Þ–W¯¢Ëkz)ߢ¹šÎ*'Š—«²‰Ú–'¬q©›Š‡bŠwb®,ó¢)ÝŠ¸³Î‡¦j)[¯bâ?Æ©iÈj Ú½çb½êâ~'æœrêÚµ©žž×¬zW³Š‰Úµ©h§8¨?çb¥¨™éí¡§ºÆ?ŠéÞ®º+z)íz¹èjYbž×«ž‡^Šz,¶¸¬ŠË^š n&¦¡«miǶ‹§iú+™¦ª¹ë-i隊VëJ*kz?ŠÇ®'襚‡n–‡¬z¢é^ŠËk»8¨ž+.–Z,r«š†ëþšM90–jºZz÷ž²Ç«yª^®Ú"žéÛ®Œ,z¹¨uêç¡È^…¢Z½«®*mi¸¥ŠÖ¡ëž×«?ëDÆ™hêÅŠ·Ÿ£^¶Ç¥æëV*kzbjj‰Ê&¦·§uêÞrª¹ë-iè+j÷®?©¢²êÚv+"rêÞÏ6?zËb?«Z¥êÜ¢{k‰»¢æ©®‹^‚«zú"yØ¥¾‹-®‡(žÚŠÇ.²&¦¢—«‚Xž½éí¹©bv+‚$ž±Ç –'yØ¢‚z+j·¥jz,¶¶«‰ÈbzËZr)Z±Èšj[kjÇ–Öœ…ë(²—§uê޵驢¶§y©žž×¢–Û¨iÇ(º{Uz¸Ÿ‰ç[ÉX¬iÊ'¶†ëþšF¬â{úiV+"Ö¥‰¤¢rêÞÏ6’ªæ?¯éþ×¶»kµ×(–ÊZœnʵßí¯ûZnW
and please can someone tell me the most common problems when i get this error.
thanks