Wrox Programmer Forums
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET 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 August 24th, 2004, 07:13 AM
dkb dkb is offline
Authorized User
 
Join Date: Oct 2003
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default System.Web.Mail

Hi there,

I am looking for some guidence using System.Web.Mail.

I am happy with the coding etc, but want to be able to store the email messages sent via the asp page/ web service in an Exchange mail box.

(There seems to be little information about this, or if there is i've missed it)

Any advice on how you would connect to the exchange service would be appreciated.

Thanks
 
Old August 24th, 2004, 07:28 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hey,

Use this: http://msdn.microsoft.com/library/de...mberstopic.asp

Specify a SmtpServer with the property of the same name. Then use Send() to send a message.

Brian
 
Old August 25th, 2004, 06:10 AM
dkb dkb is offline
Authorized User
 
Join Date: Oct 2003
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Brian,

Could you elaborate for me.

Thanks

 
Old August 25th, 2004, 07:36 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

System.Web.Mail.SmtpMail.SmtpServer = "<server name>"
        System.Web.Mail.SmtpMail.Send("<from address>", "<to address>", "<subject>", "<message>")





Similar Threads
Thread Thread Starter Forum Replies Last Post
System.Web.HttpException: Invalid mail attachment kapi.goel C# 4 September 6th, 2007 02:48 AM
System.Web.Mail - linebreaks possible? RPG SEARCH ASP.NET 1.0 and 1.1 Basics 9 January 29th, 2005 10:54 PM
Mail system vemaju Excel VBA 0 September 15th, 2004 11:53 AM
Reply E-mail System Requirements Hal Levy Forum and Wrox.com Feedback 47 July 30th, 2003 06:02 PM





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