Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > VS.NET 2002/2003
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 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 April 11th, 2006, 12:17 AM
Authorized User
 
Join Date: Jan 2006
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default In my Global asax file aDo I need the code below n

In my Global asax file aDo I need the code below newmail.fields.add and why do I need them?
The first one works but it puts my password in the code.
I am using IIS smtp mail and VS 2003

Also noted below, I have an outlook email account (the first one below password and name changed )
 and a msn.com email account
The outlook email account works but the msn account does not?



newMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1")

                    'newMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "[email protected]")


                    'newMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "Password")


                    'SmtpMail.SmtpServer = "mailserver"
                    SmtpMail.SmtpServer = ""


newMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1")


                    'newMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "[email protected]")


                    'newMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "welcome")

                    'SmtpMail.SmtpServer = "mailserver"
                    SmtpMail.SmtpServer = ""





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to declare the global variable in global.asax? calyn_gately ASP.NET 3.5 Basics 0 August 6th, 2008 08:06 PM
VB version Global.asax missing some code Scott663 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 March 29th, 2007 02:23 PM
Using Global.asax varialbles in a class.vb file sougata ASP.NET 1.0 and 1.1 Basics 3 June 30th, 2005 07:33 AM
global.asax ashokparchuri ADO.NET 1 February 25th, 2005 08:40 AM





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