Nico Edtinger
2008-04-08 00:34:31 UTC
Hi!
The message class used by Zend_Mail_Storage could help. See <http://framework.zend.com/manual/en/zend.mail.read.html#zend.mail.read-message
<?php
$message = new Zend_Mail_Message(array('file' => '/path/to/file'));
?>
Depending on the size of your messages you may replace
Zend_Mail_Message with Zend_Mail_Message_File (does only store part
postions and headers in memory).
nico
The message class used by Zend_Mail_Storage could help. See <http://framework.zend.com/manual/en/zend.mail.read.html#zend.mail.read-message
for how to work with mail messages. If you don't have your messages
in a mbox or maildir just use:<?php
$message = new Zend_Mail_Message(array('file' => '/path/to/file'));
?>
Depending on the size of your messages you may replace
Zend_Mail_Message with Zend_Mail_Message_File (does only store part
postions and headers in memory).
nico
Hi all,
I'd like to enable a current system to accept data coming from
email. Since
this email will have attachments I am considering creating a script
that
periodically checks for emails, retrieve it (and all attachments) and
process it (inserting the data in a database, moving the files
attached to a
special directory).
I was wondering if anyone has used Zend_Mail (or other component) to
do
that.
Thanks.
I'd like to enable a current system to accept data coming from
email. Since
this email will have attachments I am considering creating a script
that
periodically checks for emails, retrieve it (and all attachments) and
process it (inserting the data in a database, moving the files
attached to a
special directory).
I was wondering if anyone has used Zend_Mail (or other component) to
do
that.
Thanks.