SMTP Error - Send email

Getting an error while trying to send an mail using smtp server. The port is also enabled.

I have pasted the error below.

Message: An attempt was made to access a socket in a way forbidden by its access permissions 10.XX.XX.XXX:587

Exception Type: System.Net.Sockets.SocketException

@Manikandasamy

This is something with network related issue

Make sure that Firewall is not blocking, further more you contact your network admin

Also for more info, visit below link

Mark as solution if this helps

Thanks