Microsoft Knowledge Base Email Alertz

KBAlertz.com: How to configure the ASPNET account to send an E-mail by using the System.Web.Mail namespace

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]

Search KbAlertz

Advanced Search

Webmasters
Put kbAlertz on your website.
[ Click Here for more! ]





ASP.NET 2.0 Web Hosting with SQL 2005: Click Here!
Discount ASP.NET Hosting


Bug Tracking Software
For bug tracking software or defect tracking software or issue tracking software, visit Axosoft.


Community Site



We Send hundreds of thousands of emails using ASP.NET Email



Expert Web Design & Graphic Design
Design44.com




Mentioned In








Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks




How to configure the ASPNET account to send an E-mail by using the System.Web.Mail namespace

Article ID:895552
Last Review:May 8, 2007
Revision:2.2
Important This article contains information about how to modify the registry. Make sure to back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:
256986 (http://kbalertz.com/Feedback.aspx?kbNumber=256986/) Description of the Microsoft Windows registry

Introduction

This article describes how to configure the ASPNET account to send an e-mail message by using the System.Web.Mail namespace.

Back to the top

MORE INFORMATION

Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.
To configure the ASPNET account to send an e-mail message by using the System.Web.Mail namespace, follow these steps:

Part 1. Grant permission for the ASPNET account to access the registry key for Microsoft Collaboration Data Objects (CDO) for Exchange 2000 Library

1.Click Start, click Run, type regedt32, and then click OK.
2.In Registry Editor, locate and expand the HKEY_CLASSES_ROOT registry subtree.
3.Expand TypeLib, and locate {CD000000-8B95-11D1-82DB-00C04FB1625D}.
4.Right-click {CD000000-8B95-11D1-82DB-00C04FB1625D}, click Permissions, and then click Add.
5. Type ComputerName\ASPNET, and then click OK.

Note The placeholder ComputerName is a placeholder for the name of the computer.

Part 2. Grant NTFS file system permissions for the ASPNET account to the \Inetpub\mailroot\pickup folder

1.Click Start, click Run, type \Inetpub\mailroot\, and then click OK.
2.Right-click Pickup folder, click Properties.
3.Click the Security tab, click Add, type ComputerName\ASPNET, and then click OK.
4.Make sure that the following permissions are selected. If they are not selected, click to select them.
Read & Execute
List Folder Contents
Read
5.Click OK.

Part 3. Configure the Smart host for Microsoft Internet Information Services (IIS)

1.Click Start, click Run, type inetmgr, and then click OK.
2.Expand ComputerName, right-click Default SMTP Virtual Server, and then click Properties.
3.Click the Delivery tab, and then click Advanced.
4.In the Smart host text box, type SMTP Smart host Name, and then click OK.

Note The SMTP Smart host Name placeholder is a placeholder for the name of the SMTP Smart host.

Part 4. Specify the logon account and password for the SMTP Smart host server in the ASP.NET configurable file


Specify the logon account and password for the SMTP Smart host server in the ASP.NET configurable file to provide credentials for the domain logon. The logon account and password for the SMTP Smart host server are the same as the logon account and password that you established in Part 3. To specify the logon account and password for the SMTP Smart host server in the ASP.NET configurable file, follow these steps:
1.Click Start, click Run, type inetmgr, and then click OK.
2.Expand ComputerName, right-click Default SMTP Virtual Server, and then click Properties.
3.Click the Delivery tab.
4.Click Outbound Security.
5.Click Basic authentication, and then type the logon account and password.
6.Click OK two times.

Back to the top

For more information about the System.Web.Mail namespace, visit the following Microsoft Web site:
http://msdn2.microsoft.com/en-us/library/system.web.mail(vs.71).aspx (http://msdn2.microsoft.com/en-us/library/system.web.mail(vs.71).aspx)

Back to the top

REFERENCES

For more information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
313775 (http://kbalertz.com/Feedback.aspx?kbNumber=313775/) How to use the CDOSYS library to send an e-mail message by using the SMTP port in Visual Basic .NET
271071 (http://kbalertz.com/Feedback.aspx?kbNumber=271071/) How to set required NTFS permissions and user rights for an IIS 5.0 Web server
260985 (http://kbalertz.com/Feedback.aspx?kbNumber=260985/) XIMS: Minimum NTFS permissions required to use CDONTS

Back to the top


APPLIES TO
Microsoft ASP.NET 1.1
Microsoft ASP.NET 1.0

Back to the top

Keywords: 
kbhowto kbexchdev KB895552

Back to the top

       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

sersres - rrrr Reported as Irrelevant  
Written: 1/31/2006 1:49 AM
i cant understand this software

(Optional) Name

(Optional) Public URL Or Email

Comments
No HTML -- Text Only Please