How can I create an attachment from data only - not from a local file?
Im trying to use the pub.client:smtp service. Its used by another service that wrapped by a web service (WSD provider).
The attachment is not a local file. The attachment data comes into the flow service as a base64 encoded string.
I can take the string, decode it and set it on the attachment.content. This works file for ASCII, but binary is giving me problems. The email is delivered with an attachment, but the attachment is corrupt.
Yes, I am setting the mimeType and encoding (tried both base40 and 7bit), no difference.
What type does the attachment.content need to be? The examples that I’ve seen discussed here deal with files that exist locally.
Any suggestions welcome.