how can i handle the attachment of an attachment?

Max

I am automatically processing emails in a certain inbox. However our suppliers should send emails to that inbox with one pdf-attachment. and this pdf-attachment should be saved to a certain folder - no problem so far.

But: one supplier is sending emails that only contain another email as attachment and only in that "sub-email" the pdf is to be found. For some reasons he is not able to change that.

Now it does not seem possible to use that attachment of the attachment as mailitem:

Set objMail_New = objMail_In.Attachments.Item(1)

neither could i forward the attachment to the same mail-address again (which would have brought me the mail that I needed in the first place):

Set objMail_Forw = objMail_In.Attachments.Item(1).forward

Both bring the error "type mismatch"

Anyone any other ideas? Maybe it is possible to save the (first) attachment locally and then handle it to get to the second attachment?

Thanks max

Dmitry Streblechenko

Outlook does not allow to access embedded message attachments. The best you can do is save the attachment as an MSG file (Attachment.SaveAsFile), then open it using Namespace.OpenSharedItem.

You can also use Redemption which allows to access embedded messages attachment using RDOAttachment.EmbeddedMsg

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Handle attachment in response with RequestBuilder in GWT

How can I grab the attachment url with social-feed.js?

how can I save an attachment using exchangelib

How can I ignore an email attachment if missing from folder

How can I access URL of an ActiveStorage attachment at S3?

How can I create a Slack command with a file attachment

How can I draw the text attachment of an FBO to the default frame buffer?

How can I re-send an attachment from a message?

How can I make discord.js bot detect an attachment

How can I add an old email as attachment in replying to a more recent email in Thunderbird?

How can I email an attachment from the command line

Can I validate that a paperclip attachment is not a dangerous filetype?

How can I exclude attachment content when searching in Outlook 2010?

How can I send attachment with ssmtp in Linux?

How can I left attachment filed null while sending mail in c#

In Office 2016, how can I change the default attachment option from 'preview' to 'open'?

How can I add an attachment with Sendmail (limited options)?

I have a Post and Attachment relation. How do I create the Attachment BEFORE the Post is created

How do I display an image from an attachment?

How can I resolve SQL Server file attachment error?

How can i send a PDF as an attachment , if I only have the PDF URL

How can I email a saved blob as attachment?

How can I get the FileAttachment from a Message instead of the Attachment

How can I read a file from a folder and put it as attachment

How can i send html based mail with a blob attachment in plsql?

How do I @here with an attachment?

How can I put a canvas attachment into an embed?

How can I switch peferred handling of attachment downloads in Outlook?

How can I change the color of a Spine slot or attachment in Phaser?

TOP Ranking

HotTag

Archive