Chapter 9: Sending an Email errror
Hello Everyone,
Just thought I would let you know something I found. If you get the error:
"server error an attempt was made to access a socket in a way forbidden by its access permissions"
You can specify the port number your email service uses if its not the default port in the web.config file like this:
<smtp deliveryMethod="Network" from="*Enter your name* < *Enter your email address* & gt;">
<network host="*outgoing mail server*" port="*port number*" userName="*Username*" password="*Password*"/>
Once I specified the port number (which was 587 for my email service) the emails went through like a champ!
Hope this helps
Matt
Last edited by meichmann; July 11th, 2011 at 04:31 PM..
|