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 SalmaTrader, 07-07-2026, 10:26 PM
      0 responses
      35 views
      0 likes
      Last Post SalmaTrader  
      Started by CarlTrading, 07-05-2026, 01:16 PM
      0 responses
      20 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 06-17-2026, 10:32 AM
      0 responses
      12 views
      0 likes
      Last Post CaptainJack  
      Started by kinfxhk, 06-17-2026, 04:15 AM
      0 responses
      18 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 06-17-2026, 04:06 AM
      0 responses
      20 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X