I'm not able to set email notification
04 Jun 2025, 17:35
Hello,
I can't set email notification, the code is the follow:
using System;
using cAlgo.API;
using cAlgo.API.Collections;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
namespace cAlgo.Robots
{
[Robot(AccessRights = AccessRights.None, AddIndicators = true)]
public class TESTEMAIL : Robot
{
[Parameter(DefaultValue = "Hello world!")]
public string Message { get; set; }
protected override void OnStart()
{
Print("cBot avviato");
}
protected override void OnTick()
{
// Handle price updates here
}
protected override void OnStop()
{
Print("cBot stoppato");
Notifications.SendEmail("d.asteriti.notification@gmail.com","d.asteriti.notification@gmail.com", "Notifica di stoppazione", "il cbot si è fermato");
}
}
}
email settings are the following:
