You can
configure the SMTP server or can use Gmail SMTP to send email. But sometime you
face the error read as ‘Failure sending mail.’, though you have added
correct configuration and code to send email is correct. And then you wonder
what went wrong due to which email not sent to recipient.
Exception Detail and Reason:
If you
check the exception details then it read like:
An attempt was made to
access a socket in a way forbidden by its access permissions 173.194.79.108:587
This
issue may be due to firewall or Antivirus blocking your port to send mail.
Solution:
Disable Firewall
or Antivirus which is blocking port to send mail. If you
are using McAfee then unblock McAfee port blocking for outgoing SMTP mail as
mentioned below:
·
Go
to system tray and right click on McAfee icon and select VirusScan Console
·
Right
click on Access Protection and select Properties.
·
Go
to Anti-virus Standard Protection and uncheck the Block check against rule ‘Prevent
mass mailing worms from sending mail’ and then click on Apply.
·
Now
test to confirm that issue resolved or not.
Note: If you are using any other
Antivirus, steps may be different but whole idea is to unblock the rule that
is blocking outgoing SMTP mails.
|
This is really a wonderful post. Firstly, i'd prefer to many thanks for golf shot stress on however connection plays a giant role in hosting side. Fantastic stuff.
ReplyDeleteDedicatedhosting4u.com