Email notification from XMC are not working

  • 1
  • 1
  • Question
  • Updated 2 months ago
  • Answered

Dear All,

 

I have created  Script and configured  SNTP in XMC and I wish to send an email to admin after script is done (or when it starts, whatever).

The problem is that there is no email. I’m running this task buy clicking “Run”. Script is done, it works fine, but there is no email.

 

I’m using GMAIL as sending email. I have turned on support for less secure applications in gmail account.


Photo of Grzegorz Niemiec

Grzegorz Niemiec

  • 314 Points 250 badge 2x thumb

Posted 2 months ago

  • 1
  • 1
Photo of SH

SH

  • 4,816 Points 4k badge 2x thumb
Hello Grzegorz,

there is an email  test option in the java legacy tool Netsight console. You will find the option in the "Alarms Manager" in the "Action Tab" if you select an Alarm.

Unfortunately there is no test option in the XMC I think.

Best regards
Stephan



Photo of SH

SH

  • 4,816 Points 4k badge 2x thumb

Photo of Grzegorz Niemiec

Grzegorz Niemiec

  • 314 Points 250 badge 2x thumb

Thank you for the help. I have found an error massage when tested email through console.

The problem lied in configuration.

This is what I have done to make it work:

1.     Edit the file NetSight_Install_Directory/NetSight/appdata/NSJBoss.properties on the NetSight server:



2a.  If SSL Authentication to GMAIL is desired, add the following lines to the end of the file:
mail.smtp.port=465
mail.smtp.socketFactory.port=465
mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory
mail.smtp.socketFactory.fallback=false

mail.smtp.starttls.enable=true
Photo of SH

SH

  • 4,816 Points 4k badge 2x thumb
Hello here is a suiteable KB article:
https://gtacknowledge.extremenetworks...