Comments (4)
I don't understand what you mean. Can you elaborate? Particularly with a code snippet and full email source.
from mail.
if i save a mail from outlook it create a file with .msg extension (maybe it has its own attached pdf images etc...),
i attach the ".msg" file to mail and send...
when i fetch mail with zetacomponentMail, there is no ".msg" attachment, and i see something "inside"
now i'm solving with other lib, with custom edit...
where i've done a custom search and handling for attachment with type=2, subtype='rfc822' and disposition 'attachment' ,
and i can save the ".msg" as ".eml"
from mail.
The Mail package doesn't support the .msg
format at all, it is an open format by Microsoft (now). It is also not a format that email servers return.
When reading an email from a server, the Mail component will unpack the full email, including attachments, so that you can read the data in them. I don't think there is currently a way to disable that. It would also not make sense, because the whole purpose of reading and fetching email is that you can see what's inside.
You can use the mail class's generateHeaders and generateBody methods to rebuild the email as it was retrieved from the server, but this will not be the exact same data.
from mail.
ok, many thanks, i'll try the generateHeaders and generateBody methods as soon possible.
just for now i've done a custom handling over type/subtype to create a file .eml "similar" to .msg
from mail.
Related Issues (20)
- Feature request: add alias for the 'unicode-1-1-utf-7' charset HOT 2
- Force parse text file attachment as file when Content-Disposition: attachment header HOT 4
- File name too long when parsing attachments HOT 7
- Flags not fetched correctly from GMail HOT 1
- Iconv error on zetacomponents/mail/src/internal/charset_convert.php line 14 HOT 2
- User names and passwords can contain spaces. HOT 1
- bug in parser/parts/text_parser.php HOT 4
- create_function() is deprecated in PHP 7.2
- How to use Zeta Mail Component in Laravel HOT 1
- IMAP TLS Auth for accessing mailbox HOT 1
- Notice: iconv(): Detected an illegal character in input string HOT 1
- Attachment filename too long HOT 2
- Incompatible regex with PHP 7.3 HOT 3
- ezcMailTools::mimeHeaderEncode Timeout HOT 2
- Issue with civicrm-core HOT 2
- Undefined variable in imap_set.php HOT 1
- Curly-brace syntax for array and string access is deprecated in PHP 7.4 HOT 1
- SRS return path issues - causes whole email to fail to process HOT 4
- IMAP / POP
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mail.