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 September 8th, 2011, 12:48 AM
Registered User
 
Join Date: Sep 2010
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Unable to send mail in chapter 16

Hi, Imar
I'm trying to send the email to hotmail users for the member confirmation.Its successfully register the member but it didn't sends the email.
My web.config file code goes like this:
Code:
 
<mailSettings>
      <smtp deliveryMethod="SpecifiedPickupDirectory" from="Planet Wrox &lt;[email protected]&gt;">
        <specifiedPickupDirectory pickupDirectoryLocation="C:\TempMail" />
        <network userName="myEmailId"  password="mypassword" host="smtp.live.com" port="587"/>
      </smtp>
    </mailSettings>
And what should be done to send email to various mail servers like Yahoo,aol I mean we are considering only single host what should be done to send to multiple host.
 
Old September 8th, 2011, 03:53 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,

Take a look at your config settings. You're dropping the e-mails as .eml files in the folder C:\TempMail, and you're not sending them over SMTP to a real recipient.

Quote:
what should be done to send to multiple host
The recipient is unrelated to the mail server you configure here. When you configure Yahoo, you use Yahoo's mail server to send out the mail to a recipient; this means you can send mail to whoever you want; but just use Yahoo's mail server as the outgoing mail server.

Hope this helps,

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 September 9th, 2011, 08:34 AM
Registered User
 
Join Date: Sep 2010
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanx for the reply imar....





Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to send mail in chapter 16 prathoven BOOK: Beginning ASP.NET 4 : in C# and VB 1 September 26th, 2011 10:52 PM
Chapter 16 Fig 16-11 krsouthern BOOK: Professional SharePoint 2007 Development ISBN: 978-0-470-11756-9 1 July 8th, 2008 12:11 PM
Send mail and attachments with PHP mail function Lofa Beginning PHP 1 June 2nd, 2008 03:24 PM
Unable to send Email using Uploaded Application hellowahab .NET Framework 1.x 2 February 1st, 2007 05:08 AM
Please help, unable to send mail powerMan BOOK: ASP.NET Website Programming Problem-Design-Solution 1 November 22nd, 2005 10:12 AM





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