p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning ASP.NET 4 : in C# and VB (http://p2p.wrox.com/forumdisplay.php?f=560)
-   -   p. 317 - Sending email from your site (http://p2p.wrox.com/showthread.php?t=86888)

Tulsi March 5th, 2012 02:40 PM

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.


Imar March 6th, 2012 06:04 AM

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.



Tulsi March 6th, 2012 04:41 PM

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.


Imar March 6th, 2012 04:57 PM

Did you leave the Sleep code in there?


Tulsi March 7th, 2012 02:20 PM

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


Imar March 7th, 2012 03:02 PM

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...



Tulsi March 7th, 2012 03:12 PM

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

Thank you again.


All times are GMT -4. The time now is 07:46 PM.

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