Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to Extract User email from Misc Tab for Sendmail function

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

    How to Extract User email from Misc Tab for Sendmail function

    Hi,

    I am using SendMail Function in my script.
    For the first parameter of this function, "string from", I am trying to find out if I can extract the email address I have entered in the "User" field in the "Misc" table of my Option window.

    This is so my script can dynamically extract the email address to use for sending out notifications on different PCs with out user having to change it everytime.

    Wander if this is possible?

    Many thanks in advance.

    #2
    Hello ystan79,

    Thank you for your inquiry.

    If the "User" field is a string variable, you would be able to utilize this variable for your SendMail() call.

    Example:
    Code:
    private string user = String.Empty;
    
    protected override void OnBarUpdate()
    {
         // other logic
         ......
         SendMail(user, .....);
    }
    
    #region Properties
    [Description("")]
    [GridCategory("Parameters")]
    public string User
    {
         get { return user; }
         set { user = value; }
    }
    #endregion
    Please, let us know if we may be of further assistance.
    Zachary G.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by selu72, Today, 02:01 PM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_Zachary  
    Started by WHICKED, Today, 02:02 PM
    2 responses
    9 views
    0 likes
    Last Post WHICKED
    by WHICKED
     
    Started by f.saeidi, Today, 12:14 PM
    8 responses
    21 views
    0 likes
    Last Post f.saeidi  
    Started by Mikey_, 03-23-2024, 05:59 PM
    3 responses
    50 views
    0 likes
    Last Post Sam2515
    by Sam2515
     
    Started by Russ Moreland, Today, 12:54 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Erick  
    Working...
    X