-
-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undeliverable mail: attachment parsing error #334
Labels
Comments
Hi, we need:
|
Hi,
if ( $message->hasAttachments() ) {
foreach ( $message->getAttachments() as $attachment ) {
nodusDebug( 'work on attachment ' . $attachment->getFilename() );
try {
$content = $attachment->getDecodedContent();
} catch ( \Exception $e ) {
$content = base64_decode( $attachment->getContent() );;
}
if ( !empty( $content ) ) {
// Create File in Database
}
}
}
|
I'm sorry but without the original email we can't reproduce the bug. Maybe you can:
|
I try to generate a testmail an give you more feedback! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
i've parsed a undeliverable mail with the original mail as attachment. When i use the getAttachments function from Message i get the attachments from the original mail ( attached as .eml file ) and not the correct attachments for this mail. The content of the attachments is always null!
The text was updated successfully, but these errors were encountered: