Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB 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 March 5th, 2012, 02:40 PM
Friend of Wrox
 
Join Date: Mar 2011
Posts: 126
Thanks: 39
Thanked 2 Times in 2 Posts
Default p. 317 - Sending email from your site

Hi Imar,

I'm a little stuck on this section. I'm working from a laptop at home and currently have verizon for my internet service. I don't have Microsoft Outlook configured because I just use my verizon account for email. How do I get the SMTP server address so I can set up the web.config similar to p. 317?

Thank you.

Tulsi
 
Old March 6th, 2012, 06:04 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,

It depends. Verizon may be offering one; not sure. You could also create a Gmail / Hotmail / Yahoo account and use their SMTP server.

Alternatively, just drop the mails on the local disk, as explained on page 318. That's my preferred solution during development.

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!
 
Old March 6th, 2012, 04:41 PM
Friend of Wrox
 
Join Date: Mar 2011
Posts: 126
Thanks: 39
Thanked 2 Times in 2 Posts
Default

Thank you for the suggestions. I set up an account with Gmail and used their SMTP server. I was pleasantly surprised at how easy it was to get this working!

After sending the message it takes a while before I get the "Message Sent" message. Is this supposed to happen?

Thank you.

Tulsi
 
Old March 6th, 2012, 04:57 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Did you leave the Sleep code in there?

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!
 
Old March 7th, 2012, 02:20 PM
Friend of Wrox
 
Join Date: Mar 2011
Posts: 126
Thanks: 39
Thanked 2 Times in 2 Posts
Default

I don't think I have any sleep code. I did not see any as I was typing in the examples from the book.

Thanks
Tulsi
 
Old March 7th, 2012, 03:02 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Oh, you're right. That's added in Chapter 10.

In that case, it may just be that your network or SMTP server is slow...

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!
The Following User Says Thank You to Imar For This Useful Post:
Tulsi (March 7th, 2012)
 
Old March 7th, 2012, 03:12 PM
Friend of Wrox
 
Join Date: Mar 2011
Posts: 126
Thanks: 39
Thanked 2 Times in 2 Posts
Default

You're right. I tested the code out today and did not see any delay.

Thank you again.

Tulsi





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Sending Mail From Site with Localhost kibock BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 January 9th, 2011 04:22 PM
Sending Email Edward Colins BOOK: Beginning ASP.NET 4 : in C# and VB 9 September 19th, 2010 05:29 PM
Problem sending mail after publishing site raj_yash22 C# 2005 9 November 23rd, 2009 01:45 AM
Getting Error with code on page 316 and 317 ASPLee BOOK: Beginning Microsoft Visual C# 2008 ISBN: 978-0-470-19135-4 2 October 18th, 2009 10:40 AM
email sending msrnivas .NET Web Services 6 June 26th, 2004 06:59 AM





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