Find Jobs
Hire Freelancers

Bug - Add Attachment in My Email Service

€8-30 EUR

Imeghairiwa
Imechapishwa over 6 years ago

€8-30 EUR

Kulipwa wakati wa kufikishwa
Hello, I have a problem with my code.. I cant do download attachments, when I click in attachment "[login to view URL]", the link appears this way "[login to view URL]" but the link doesn't existed, and go to automatically to my home page without download the file.. -------------------------------------- $id = $_POST['id']; $pdo = new PDO("sqlite:[login to view URL]"); $email = $pdo->query("SELECT * FROM `myemails` WHERE `id`='$myid'")->fetch(PDO::FETCH_ASSOC); $email_body = base64_decode($email['message']); $letter_html = ""; //$op_getKey = preg_match_all("/Content-Type: multipart\/alternative; boundary=\"(.*?)\"/", $email_body, $getKey); //$op_getKey = preg_match_all("/alternative; boundary=\"(.*)\"/", $email_body, $getKey); $op_getKey = preg_match_all("/boundary=\"(.*)\"/", $email_body, $getKey); //$has_attachment = preg_match_all("/multipart\/mixed/; boundary=\"(.*?)\"/", $email_body, $attachment); $has_attachment = preg_match_all("/multipart\/mixed/", $email_body, $attachment); if ($op_getKey) { if ($has_attachment) { $mailParts = explode("--" . $getKey[1][1], $email_body); $attachParts = explode("--" . $getKey[1][0], $email_body); $get_attach_name=preg_match_all("/filename=\"(.*?)\"/", $attachParts[2], $attach_name); $get_attach_type=preg_match_all("/Content-Type: (.*?);/", $attachParts[2], $attach_type); $pure_code = explode("\n\n",$attachParts[2]); $pure_code = str_replace("\r","",$pure_code[1]); $pure_code = str_replace("\n","",$pure_code); }else{ $mailParts = explode("--" . $getKey[1][0], $email_body); } -------------------------------------- And I call the function this way -------------------------------------- <a target="_blank" href="[login to view URL]< ?=$attach_name[1][0]? >" data-target="< ?$id? >">< ?=$attach_name[1][0]? >< /a> -------------------------------------- So that it is possible, whenever you receive an email, that the file go to the "attachment" folder and can download the images or files .. And I need a correction of this bug, when receive the emails, in the subject show me like this -------------------------------------- =?UTF-8?Q?Fwd=2C_analis=C3=A1mos_o_Legion_Y520_da_Lenovo=2C_u? -------------------------------------- I show u the rest of the code. I need this in 1 day.. Best Regards
Kitambulisho cha mradi: 15390120

Kuhusu mradi

6 mapendekezo
Mradi wa mbali
Inatumika 7 yrs ago

Unatafuta kupata pesa?

Faida za kutoa zabuni kwenye Freelancer

Weka bajeti yako na muda uliopangwa
Pata malipo kwa kazi yako
Eleza pendekezo lako
Ni bure kujiandikisha na kutoa zabuni kwa kazi
6 wafanyakazi huru wana zabuni kwa wastani €23 EUR kwa kazi hii
Picha ya Mtumiaji
Hello Sir, I've reviewed your requirement and I'm ready to work with you.I have almost 8+ years of experience in web development. I will provide quality work as well full support for any query. Relevant Skills and Experience I have experience in following area Open Source : Joomla,Wordpress,Magento,Prestashop,Oscommerce,Zencart,X-Cart,Opencart PHP Framework : CakePHP,codeigniter,Smarty,ZendFramework (MVC based). Proposed Milestones €25 EUR - Milestone
€25 EUR ndani ya siku 0
4.9 (151 hakiki)
6.1
6.1
Picha ya Mtumiaji
Give us a chance to work with you, we are a very good skilled team we put in all the efforts to complete the given task and achieve the best results,we are looking for long run business relation. Relevant Skills and Experience *Woocommerce *Wordpress Hardening *Wordpress Migrations *Data Mining *Server Management * Web Scraping * Website Designing * Website Maintenance * Android Development * Yii 2 Framework Development Proposed Milestones €27 EUR - we clearly work for the client satisfaction with best possible output for available budget of client
€27 EUR ndani ya siku 1
5.0 (20 hakiki)
3.7
3.7
Picha ya Mtumiaji
Hi I am expert in php and SQLite Relevant Skills and Experience php Proposed Milestones €13 EUR - upfront €10 EUR - after delevired
€23 EUR ndani ya siku 1
4.8 (2 hakiki)
2.4
2.4

Kuhusu mteja

Bedera ya PORTUGAL
World, Portugal
5.0
1
Njia ya malipo imethibitishwa
Mwanachama tangu Okt 8, 2017

Uthibitishaji wa Mteja

Asante! Tumekutumia kiungo cha kudai mkopo wako bila malipo kwa barua pepe.
Hitilafu fulani imetokea wakati wa kutuma barua pepe yako. Tafadhali jaribu tena.
Watumiaji Waliosajiliwa Jumla ya Kazi Zilizochapishwa
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Onyesho la kukagua linapakia
Ruhusa imetolewa kwa Uwekaji wa Kijiografia.
Muda wako wa kuingia umeisha na umetoka nje. Tafadhali ingia tena.