Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SendMail not working

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

    SendMail not working

    Code:
    else if (State == State.DataLoaded){
                Print("test");
                SendMail(Email,"testIns","test");
    
    }
    I'm unable to get my alerts to fire and send emails for the last couple weeks. did something change? I am able to use the share services test email functionality but it doesn't seem to work in my indicator anymore. I made a short test script w/ the Email set to mine above but I only see 'test' being printed in the output window. It doesn't seem to even attempt to try and run sendmail.

    #2
    Hello habibalex,

    Thank you for your post.

    The issue is that you're calling SendMail() during State.DataLoaded. SendMail() may only be called during State.Realtime.

    The correct usage would then be:

    else if (State == State.Realtime)
    {
    Print("test");
    SendMail(Email,"testIns","test");
    }

    Here is a link to our help guide on SendMail():



    Please let us know if we may be of further assistance to you.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    36 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
    14 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    20 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    22 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X