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 cmoran13, Yesterday, 01:02 PM
      0 responses
      25 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      17 views
      0 likes
      Last Post PaulMohn  
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      160 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      94 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      147 views
      2 likes
      Last Post CaptainJack  
      Working...
      X