Find Jobs
Hire Freelancers

PHP script to process incoming emails

$800-1600 HKD

Đã hủy
Đã đăng vào gần 8 năm trước

$800-1600 HKD

Thanh toán khi bàn giao
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 ); } ?>
Mã dự án: 10926082

Về dự án

16 đề xuất
Dự án từ xa
Hoạt động 8 năm trước

Bạn muốn kiếm tiền?

Lợi ích khi chào giá trên Freelancer

Thiết lập ngân sách và thời gian
Nhận thanh toán cho công việc
Phác thảo đề xuất của bạn
Miễn phí đăng ký và cháo giá cho công việc
Đã trao cho:
Avatar người dùng
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 trong 15 ngày
4,9 (48 nhận xét)
4,7
4,7
16 freelancer chào giá trung bình $1.283 HKD cho công việc này
Avatar người dùng
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 trong 3 ngày
5,0 (44 nhận xét)
6,0
6,0
Avatar người dùng
A proposal has not yet been provided
$1.600 HKD trong 5 ngày
5,0 (63 nhận xét)
5,7
5,7
Avatar người dùng
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 trong 10 ngày
4,8 (43 nhận xét)
5,2
5,2
Avatar người dùng
please contact me and i'll do it ASAP for you, regards, Alex.
$800 HKD trong 5 ngày
5,0 (19 nhận xét)
4,5
4,5
Avatar người dùng
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 trong 10 ngày
4,9 (19 nhận xét)
4,6
4,6
Avatar người dùng
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 trong 1 ngày
0,0 (0 nhận xét)
0,0
0,0

Về khách hàng

Cờ của HONG KONG
Hong Kong, Hong Kong
5,0
22
Phương thức thanh toán đã xác thực
Thành viên từ thg 6 13, 2011

Xác thực khách hàng

Cảm ơn bạn! Chúng tôi đã gửi email chứa đường link để bạn lấy tín dụng miễn phí.
Đã xảy ra lỗi trong khi gửi email của bạn. Hãy thử lại.
Người Dùng Đã Đăng Ký Tổng Số Việc Đã Đăng
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Đang tải xem trước
Đã cấp quyền truy cập vị trí.
Phiên đăng nhập của bạn đã hết hạn và bạn đã bị đăng xuất. Hãy đăng nhập lại.