09-25-2023 02:15 PM
I would like to send data (maybe an array, or string, or variant) as an email attachment. I can find plenty of examples of sending emails with attached files. So, one option is to save the data as a file and attach it. However, I'd like to skip the save as a file step and attach the data directly. Seems that shouldn't be too hard, but after much research and messing around with .Net constructors and methods, I haven't been able to figure it out. (I am fairly .Net clueless, I admit.) Any help anyone can give would be greatly appreciated!
Solved! Go to Solution.
09-25-2023 02:33 PM
There are tools for converting binary files to text and back. Search the web.
09-25-2023 02:39 PM
I am trying to attach data to an email without first saving it as a file. I'm not trying to convert a binary file to text.
09-25-2023 03:39 PM
Then put the data in the body of the message. Attachments are for files...message body is for data.
09-25-2023 03:40 PM
I suppose that I can just flatten my data to a string, put it in the body and send it that way, but I am looking to add it as an attachment, without saving it as a file first.
09-25-2023 03:42 PM
Thanks, aputman, I had thought of that since my original post and was working on it...