Add a SaveToFile / SaveToStream to TscMailMessage to store in EML format
We planning to enhance the functionality of TscMailMessage to replace Indy components in your project. To achieve this, implementing a method like SaveToFile and SaveToStream is indeed a practical approach for exporting messages in EML format.
The SaveToFile method would save the email message to a file in the EML format, while the SaveToStream method would store the email message into a stream. These methods could be modeled after similar functionality in the Indy components.
Here's an example implementation outline for both methods:
- SaveToFile: - Accept a file path as an argument.
- Convert the TscMailMessageobject into EML format.
- Write the formatted message into the file.
 
- SaveToStream: - Accept a stream object as an argument.
- Convert the TscMailMessageobject into EML format.
- Write the formatted message into the provided stream.
 
                9
                 votes
              
            
 Vario Entwicklung
    
 shared this idea
Vario Entwicklung
    
 shared this idea
      
    