Delphi For PHP Forums       


Go Back   Delphi-PHP Forums > Programming > PHP - Code
Forum Jump Register FAQ Members List Downloads Search Today's Posts Mark Forums Read

PHP - Code PHP programming - Ask questions and help people with PHP code. If you are stuck and need help, this is where you ask for help.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 22nd October 2008, 13:43
D4PHP Engineer
 
Join Date: Jul 2007
Posts: 431
classic is on a distinguished road
Default Extract details & image attachments from email

Any pointers on the above please?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 22nd October 2008, 23:26
D4PHP Enthusiast
 
Join Date: Apr 2007
Location: Barrie, Ontario, Canada
Posts: 181
jomitech is just really nicejomitech is just really nicejomitech is just really nicejomitech is just really nicejomitech is just really nice
Default

In what format are you getting the email?
__________________
Jon

Components For PHP - The complete component suite for Delphi For PHP.
PlatinumGrid - Powerful and flexible PHP grid control.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 23rd October 2008, 00:03
D4PHP Engineer
 
Join Date: Jul 2007
Posts: 431
classic is on a distinguished road
Default

the message can be sent to any email address. It is a mms message forwarded by the service provider. It contains data in the header and body that identifies the sender and between 1&6 images as attachments. We need to process the sender details than either put the images into mysql blob fields or in a particular folder on the server.
Cheers

Stevew
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 23rd October 2008, 00:09
D4PHP Enthusiast
 
Join Date: Apr 2007
Location: Barrie, Ontario, Canada
Posts: 181
jomitech is just really nicejomitech is just really nicejomitech is just really nicejomitech is just really nicejomitech is just really nice
Default

You could use the Mailparse PECL package for this, or manually parse the MIME data.
__________________
Jon

Components For PHP - The complete component suite for Delphi For PHP.
PlatinumGrid - Powerful and flexible PHP grid control.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 23rd October 2008, 10:50
D4PHP Engineer
 
Join Date: Jul 2007
Posts: 431
classic is on a distinguished road
Default

This extension is EXPERIMENTAL. The behaviour of this extension -- including the names of its functions and anything else documented about this extension -- may change without notice in a future release of PHP. Use this extension at your own risk.

With all the problems I have had with Delphi PHP I'll give this one a miss.....

How do I 'parse the MIME data' please? What is MIME data and where does it live?


Cheers

SteveW
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 23rd October 2008, 17:44
D4PHP Enthusiast
 
Join Date: Apr 2007
Location: Barrie, Ontario, Canada
Posts: 181
jomitech is just really nicejomitech is just really nicejomitech is just really nicejomitech is just really nicejomitech is just really nice
Default

Parsing the MIME format isn't too easy, so it would be easier to find a package that'll do it for you.

Try this one, it might do the job: Class: Parse Mail (sendmail, base64) - PHP Classes
__________________
Jon

Components For PHP - The complete component suite for Delphi For PHP.
PlatinumGrid - Powerful and flexible PHP grid control.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 03:37.




Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 ©2009, Crawlability, Inc.
Copyright © 2004 - 2009, G&J Solutions Ltd. All Rights Reserved. terms of use