Find Jobs
Hire Freelancers

PHP script to process incoming emails

$800-1600 HKD

취소됨
게시됨 거의 8년 전

$800-1600 HKD

제출할때 지불됩니다
Need to have a PHP program under Linux to use IMAP function [login to view URL] to: 1. read an email account 1.1 if there is no new email, exit here 2. loop through each new email, if there is an attachment (an attachment may have multiple files): 2.1 if the attachment is >15 MB: 2.1.1 email the sender back that attachment size is too large 2.1.2 goto 2.3 2.2 check if the email is from a recognized email address (use SQL to query a MySQL database) 2.2.0 record the time of attachment downloaded 2.2.1 if the email is from a recognized email address: 2.2.1.1 download the attachments and save the attachments to a directory (tmp_dir) 2.2.2 if the email is not from a recognized email address: 2.2.2.1 if the total attachment size is >2 MB: 2.2.2.1.1 do not download the attachment 2.2.2.1.2 email the sender back that attachment size is too large 2.2.2.1.3 goto 2.3 2.2.2.2 if the attachment is <2 MB: 2.2.2.1.1 download the attachment and save the attachment to a directory (tmp_dir) 2.2.3 email the sender back that: 2.2.3.1 the attachment is successfully received 2.2.3.2 the size and filename of each attached file 2.2.3.3 time of attachment downloaded 2.2.4 save the details of the email into a database (use SQL to write to a MySQL database), one record for one file in the attachment. E.g. if there are 5 files in the attachment, there will be 5 new records 2.2.4.1 sender email address 2.2.4.2 each filename of the attachment 2.2.4.3 size of each filename 2.2.4.4 time of attachment downloaded 2.3. delete the email from IMAP 3. exit Your PHP program will be run under CRON job every minute. In order to filter bot reply, please submit your bid by stating what 2.2.4.1 above is. Please let me know if you need further information. Below is the skeleton of the code that I have created so far and you are free to change it. <?php // set user to check $strUser = "user@ [login to view URL]"; $strPassword = "123123pwd"; $mail_server = "[login to view URL]" // open $hMail = imap_open ("{$mail_server:993/imap/ssl}INBOX", "$strUser", "$strPassword"); // get headers $aHeaders = imap_headers( $hMail ); // get message count $objMail = imap_mailboxmsginfo( $hMail ); // process messages for( $idxMsg = 1; $idxMsg <= $objMail->Nmsgs; $idxMsg++ ) { // get header info $objHeader = imap_headerinfo( $hMail, $idxMsg ); // get from object array $aFrom = $objHeader->from; // process headers for( $idx = 0; $idx < count($aFrom); $idx++ ) { // get object $objData = $aFrom[ $idx ]; // get email from $strEmailFrom = $objData->mailbox . "@" . $objData->host; print_r ($strEmailFrom); // do some stuff here } // delete message //imap_delete( $hMail, $idxMsg ); } ?>
프로젝트 ID: 10926082

프로젝트 정보

16 제안서
원격근무 프로젝트
활동 중 8년 전

돈을 좀 벌 생각이십니까?

프리랜서 입찰의 이점

예산 및 기간 설정
작업 결과에 대한 급여 수급
제안의 개요를 자세히 쓰세요
무료로 프로젝트에 신청하고 입찰할 수 있습니다
프로젝트를 수여된 사용자:
사용자 아바타
Hello Sir Thank you for detailed project description this description tells full details of project. we are ready to start now . In you project you want a IMAP functionality where we need to read all new email that should be recognized email ID every minute .If attachment is more then 15 mb and >2 mb sender back that attachment size is too large .if it is less than 2 mb then should download the files and insert record in database and sent email back that we got your email successfully Thank you
$800 HKD 15일에
4.9 (48 건의 리뷰)
4.7
4.7
16 이 프로젝트에 프리랜서들의 평균 입찰은 $1,283 HKD입니다.
사용자 아바타
Hi! I have somewhat have something in similar but was done in Python SMTP and imap. The logic is understandable and PHP imap library is straight forward. I look forward to the properties of the database and for your acceptance. This is an exciting project and I won't fail you. Have a great day!
$1,111 HKD 3일에
5.0 (44 건의 리뷰)
6.0
6.0
사용자 아바타
A proposal has not yet been provided
$1,600 HKD 5일에
5.0 (63 건의 리뷰)
5.7
5.7
사용자 아바타
HI Reviewed your requirements we can do the task and let you know in our development server Kindly let me know when do you the task completed Thanks Manickavel
$1,555 HKD 10일에
4.8 (43 건의 리뷰)
5.2
5.2
사용자 아바타
please contact me and i'll do it ASAP for you, regards, Alex.
$800 HKD 5일에
5.0 (19 건의 리뷰)
4.5
4.5
사용자 아바타
Hey. I got acquainted with the information you supplied. Project zainetersoval. I understand perfectly the essence of the problem. There is a great experience. There is a great desire to work. I would be happy to implement your project into reality. I propose to discuss all the details of your project in more detail, deadlines, budget. I look forward to our cooperation. I'll wait for your answer in the chat.
$2,222 HKD 10일에
4.9 (19 건의 리뷰)
4.6
4.6
사용자 아바타
Hello! Can do this task for you very quickly. Today. I have wide experience in writing such utilities on PHP (including client-servers scripts, web scraping, working with databases, APIs, monitoring and control systems, and so on). Almost always online, waiting for your answer Thank you.
$800 HKD 1일에
0.0 (0 건의 리뷰)
0.0
0.0

고객에 대한 정보

국기 (HONG KONG)
Hong Kong, Hong Kong
5.0
22
결제 수단 확인
6월 13, 2011부터 회원입니다

고객 확인

감사합니다! 무료 크레딧을 신청할 수 있는 링크를 이메일로 보내드렸습니다.
이메일을 보내는 동안 문제가 발생했습니다. 다시 시도해 주세요.
등록 사용자 전체 등록 건수(일자리)
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
미리 보기 화면을 준비 중...
위치 정보 관련 접근권이 허용되었습니다.
고객님의 로그인 세션이 만료되어, 자동으로 로그아웃 처리가 되었습니다. 다시 로그인하여 주십시오.