Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Attach txt files to mail

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Attach txt files to mail

    Hi, i would to know if it possible to attach a local txt file when i call the method SHARE of Ninjacript to send an email. How can i do that?

    Thanks

    #2
    Hello Davide999,

    You would have to include the text as the message when using the built in share service. To attach a file would require writing your own share service however I am unsure if the core functionality of the email service built into the platform could handle that. You may need to write your own C# email client as a share service to support a file being sent.

    Comment


      #3
      Hi,
      THANK YOU!! I resolved putting the file into the text of the mail maintaining the formatting of the txt file with the method "ReadAllText" of C#.

      Best regards

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      221 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      136 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      150 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      236 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      193 views
      0 likes
      Last Post CarlTrading  
      Working...
      X