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 October 26th, 2011, 03:16 AM
Registered User
 
Join Date: Oct 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default E-mail from setting

Hello Imar,

Wonderful book, very well put together, I’m learning a great deal.

I have two questions about e-mail that I couldn't find addressed in the blog (chap 9 and 19). The 'from address' in the ContactForm.ascx.cs seems to have no effect. No matter what address I put in there or the config.sys <add key/> has no effect. The address in the web.config <mailSettings/> is the one always used and is what shows up in the e-mail from field. What is the purpose of the 'from' code if it has no effect.

Code:
myMessage.From = new MailAddress(AppConfiguration.FromAddress, AppConfiguration.FromName);
<add key="FromAddress" value="[email protected]" />
A second question is there any way not to expose your password in the config.sys file. Obviously I wouldn’t want to use a personal account there.


Thanks,

wr





Similar Threads
Thread Thread Starter Forum Replies Last Post
setting from address in outlook mail item bishnupokhrel Pro VB 6 1 January 26th, 2011 10:28 AM
Send mail and attachments with PHP mail function Lofa Beginning PHP 1 June 2nd, 2008 03:24 PM
Setting Up PHP to Use E-mail dakaa101 BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 3 December 13th, 2005 05:25 PM
Sending both text mail and HTML mail - CDONTS madhukp Classic ASP Basics 1 October 8th, 2003 01:05 AM





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