Microsoft KB Archive/304967

= How to Configure SQL Server to Send Email on Small Business Server 2000 =

Article ID: 304967

Article Last Modified on 1/18/2006

-

APPLIES TO


 * Microsoft Small Business Server 2000 Standard Edition

-



This article was previously published under Q304967



IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry



SUMMARY
This article describes how to properly configure a MAPI profile on Microsoft Small Business Server 2000 with both Microsoft Exchange Server 2000 and Microsoft SQL Server 2000 installed on the same computer to work with SQL Mail. In this example, you need to log on as the domain\administrator and configure the SQL Server to log on as the domain\administrator.



MORE INFORMATION
WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

 Copy the following files to a temporary folder:  \ClntApps\ClientApps5\Outlook2000SR1\PFiles\Common\System\Mapi\1033\NT\newprof.exe \ClntApps\ClientApps5\Outlook2000SR1\PFiles\Common\System\Mapi\1033\mapisvc.inf \Program Files\Microsoft BackOffice\ClientSetup\Clients\Setup\sbs.prf  From a command prompt, run the following command from the temporary folder to which you copied the files in step 1:

newprof -p .\sbs.prf

</li> Modify the registry: <ol style="list-style-type: lower-alpha;"> Start Registry Editor (Regedt32.exe).</li> Locate the value under the following key in the registry:

HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\Microsoft Outlook\13dbb0c8aa05101a9bb000aa002fc45a

</li> Double click the 001e6608 value, change %SBSServer% to the NetBIOS name of your server, and then click OK.</li> Quit Registry Editor.</li></ol> </li> Check the account that SQL Server uses: <ol style="list-style-type: lower-alpha;"> Click Start, point to Programs, point to Microsoft SQL Server, and then click Enterprise Manager.</li> Expand Microsoft SQL Servers.</li> Expand SQL Server Group.</li> Right-click your server, and then click Properties.</li> Click the Security tab.</li> Make sure that the SQL Server is logging on as a specified account (such as domain\administrator) and that the password is correct.</li> Click OK.</li></ol> </li> Make the following changes: <ol style="list-style-type: lower-alpha;"> Expand the Management item.</li> Right-click SQL Server Agent, and then click Properties.</li> <li>On the General tab, make sure that the SQL Server Agent is configured to log on as a specific account (such as domain\administrator).</li> <li>In the Mail Profile drop-down box, you should see an entry for Microsoft Outlook.</li> <li>Click the Microsoft Outlook profile, and then click the Test button to verify that it can start and stop a mail session by using that profile.</li> <li>Click OK on the SQL Server Agent Properties dialog box.</li> <li>Click Apply, and then click OK on the SQL Server Agent Properties dialog box.</li> <li>Right-click SQL Server Agent, and then click Start.</li> <li>Expand the Support Services item.</li> <li>Right-click SQL Mail, and then click Properties.</li> <li>Click the Microsoft Outlook profile from the drop-down list, and then click the Test button to verify that it can start and stop a mail session by using that profile.</li> <li>Click OK on the SQL Mail Configuration dialog box.</li></ol> </li> <li>On the Tools menu, click SQL Query Analyzer. Using the following query, you should be able to send a test e-mail message to the administrator:

xp_sendmail @recipients=administrator,@subject='test1'

Note: In this example, the master database needs to be selected in the Database window.</li></ol>

For more information about SQL Mail or creating a new MAPI profile, click the following article numbers to view the articles in the Microsoft Knowledge Base:

263556 INF: How to Configure SQL Mail

268996 MAPI Profiles Are Deleted and Error Message Occurs When SBS Console Is Reinstalled

266418 Microsoft does not support installing Exchange Server and Outlook on the same computer

Additional query words: smallbiz sbs

Keywords: kbhowto kbenv KB304967

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.