Jump to content

Problem reading inline attachments


domiller
 Share

This topic is 2849 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I can't decide if I'm doing something wrong, or if I have found a bug.  If I request all attachments (which should include inline as well), the results aren't promising.

 

For true attachments, the EmailReadMessageValue( "attachments") returns strings of the form:

  C:Users{user redacted}[email protected]{domain redacted}image002.jpg

which work perfectly.

 

However, inline attachemnts are giving me only the filename. e.g. image001.png.  The images are being written to disk just fine, but the path to them isn't there.

 

Am I missing something, or is this a bug?

 

Related question: I can compute the path for an image as "C:Users{user redacted}AppDataLocalTemp6" & MessageID & "" & Filename, but can I depend on the subdirectory under Temp always being 6?

 

Thanks,

 

Dale

Link to comment
Share on other sites

The EmailReadMessageValue("attachments") function by default does not return inline attachments (since often things like signature images are inline and usually don't need to be downloaded). If you instead use EmailReadMessageValue("attachmentsAll"), you should get inline attachments as well. Try that out and let us know if that works for you!

 

I'll look into our docs and see if we can make this more apparent.

Link to comment
Share on other sites

This topic is 2849 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.