User-893002196 posted
Hi All,
I got this error when trying to send email using smtp. I have added allow ip address at Azure Management Portal:-
message.Sender =
new
MailAddress(from,
"Software
Allocation AutoMailer");
message.Body = msgBody;
System.Net.Mail.
SmtpClient
smtp = new
System.Net.Mail.SmtpClient("xxx.xx.0.100",
25);
Error I got:-
An attempt was made to access a socket in a way forbidden by its access permissions xxx.xx.0.100:25
Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions xxx.xx.0.100:25
Anyone can let me know what is wrong?
Thank you.
Regards,
Micheale