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 21st, 2011, 08:54 PM
Registered User
 
Join Date: Oct 2010
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Unhappy Error sending Mail

Hi Imar. I bought your book and I think it's great. I've developed some projects and I really apreciate your work! Thanks!

I'm working in this project, but I have a little problem with the Contact Page.

My code in web.config as follows:

Code:
.
.
.
<appSettings>
    <add key="FromAddress" value="[email protected]" />
    <add key="FromName" value="Usuario Recicloo" />
    <add key="ToAddress" value="[email protected]" />
    <add key="ToName" value="Administrador Recicloo" />
    <add key="SendMailOnError" value="false" />
</appSettings>
.
.
.
<system.net>
    <mailSettings>
      <smtp deliveryMethod="Network" from="rodagulus &lt;[email protected]&gt;">
        <network host="smtp.prodigy.net.mx"/>
      </smtp>
    </mailSettings>
  </system.net>
In VWD works fine but in the page on the internet i get a friendly error when I "send" the message. I don't know where is that error :'(

Thanks again!!
 
Old July 22nd, 2011, 06:40 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

To see the real error, turn off custom error messages in the web.config, and try again. Then you can see what exactly is going wrong.

My guess is that a) your mail server cannot be reached or b) you need to supply additional data such as a username/password, port number and ssl settings. Just a guess though ;-)

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Error when sending mail using the AjaxMail example MightyThor BOOK: Professional Ajax ISBN: 978-0-471-77778-6 3 June 23rd, 2006 04:11 AM
Mail sending error rajuru Beginning PHP 3 October 20th, 2004 01:19 AM
URGENT Error in sending mail qazi_nomi Classic ASP Basics 12 June 25th, 2004 07:42 PM





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