Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 8th, 2011, 10:45 AM
Authorized User
 
Join Date: Jul 2004
Posts: 16
Thanks: 0
Thanked 2 Times in 2 Posts
Send a message via ICQ to meichmann Send a message via AIM to meichmann Send a message via Yahoo to meichmann
Default 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* &lt *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..
The Following User Says Thank You to meichmann For This Useful Post:
Imar (July 9th, 2011)





Similar Threads
Thread Thread Starter Forum Replies Last Post
chapter 9... Sending email msg argonzal BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 April 21st, 2011 04:12 AM
Chapter 9 sending email pg 323-326 nzg5 BOOK: Beginning ASP.NET 4 : in C# and VB 3 September 17th, 2010 03:17 PM
Chapter 9:page 310,sending email messages Arya BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 4 January 4th, 2010 09:51 PM
Sending email Sheraz Khan Classic ASP Basics 1 December 12th, 2009 12:58 AM
sending email keyvanjan Classic ASP Components 1 May 9th, 2005 05:56 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.