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 January 24th, 2009, 01:22 PM
Authorized User
 
Join Date: Jan 2009
Posts: 21
Thanks: 5
Thanked 0 Times in 0 Posts
Default Chapter 9 - Sending eMails

Hi,

I couldn't find the passwords I needed when I worked my way through chapter 9, so I just continued even though I couldn't send any mails at that time.

Now I have started on chapter 10, and my passwords have arrived from my ISP, but I am not sure they allow me to send emails from web applications?

I get a yellow triangle in the bottom left corner of the IE7-window, and it says something like this: "sys.webforms.pagerequestmanagerservererrorexcepti on: failure sending mail."

It seems as if IIS7 can be configured to handle emails from web apps, it also seems as if the server can store the emails as files in a specified directory. I thought that was an alternativ, because then the contact page would think the mail has been sent? Am I right?
But I haven't found out how to make it work....

And doesn't VWD use an other web server when viewing the pages?

Hmmm... I gues what I am trying to ask, is this: If my ISP doesn't allow me to send email from my asp.net application, does it exist an alternative, so that I can fool my application into thinking the mail has been sent?
 
Old January 24th, 2009, 01:27 PM
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,

Does your ISP allow you to send mail from a standard mail program like Outlook? If so, there's a fair chance things will work fine. Take a look at page 309 to see how to configure the web.config file for sending e-mail.

Also, try removing the UpdatePanel from the contact form User Control so you get better error messages....

And yes, VWD uses the built-in web development server by default. Chapter 18 shows you how to deploy to IIS....

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!
The Following User Says Thank You to Imar For This Useful Post:
havardoj (January 24th, 2009)
 
Old January 24th, 2009, 06:37 PM
Authorized User
 
Join Date: Jan 2009
Posts: 21
Thanks: 5
Thanked 0 Times in 0 Posts
Default

Hi again Imar,

And once again, thanks for quick answering!
I must admit I hoped that you could pinpoint what I had done wrong, and present me with the solution. Because I felt that I had followed you examples 100%.

But that was actuallly a "mistake". My ISP has been hit extra hard with spam, one result is that they have blocked port 25. That was one thing.
The other thing was that they are not very clear on what to use as a username for this and that purpose. When logging in one place, the username is my email address, some other place it is a "strange" string.

So I forced myself to open the book at page 309 and try once again to create that simple email application.
And it worked!

Now I can progress happily, thanks for that!
 
Old January 24th, 2009, 07:15 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Great; glad it's working now...

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
Sending Multiple Emails Brendan Bartley Access 2 January 25th, 2009 01:49 AM
Sending automatic emails maitias C# 2005 3 March 3rd, 2006 09:51 PM
Sending emails from smartphone application. unprsandeep C# 0 March 24th, 2005 02:01 PM
Sending automatic emails in Access marcin2k Access VBA 10 March 6th, 2005 03:48 PM
sending emails from vb.Net elan22 General .NET 5 May 27th, 2004 08:53 AM





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