Condividi tramite


How to Configure the CommerceDirectMailer Authentication Module

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

If you want to support sending personalized e-mail messages by using the Direct Mailer Service, you must set up the CommerceDirectMailer Authentication module on your site. The Direct Mailer Service interacts with the Authentication module and generates personalized e-mail bodies from the Web pages in your site.

For more information, see CommerceDirectMailerAuthenticationModule.

The Authentication module works differently depending on if your site uses Commerce Authentication or ASP.NET Authentication. If your site uses Commerce Authentication, the module does nothing. The page accesses personalized properties by using CommerceContext.Current.UserID and CommerceContext.Current.UserProfile.

If your site uses ASP.NET Authentication, the module sets up HttpContext.Current.User, CommerceContext.Current.UserID, and CommerceContext.Current.UserProfile. These properties are set up based on the <profile> element settings in your site's Web.config file. For more information about profiles elements, see profiles Element.

Settings for the Authentication module are stored in the Web.config file. If any parameters change, you must modify the Web.config file. For example, if you change your site authentication from ASP.NET Authentication to Commerce Authentication, you will have to modify the Web.config file to include the new authentication mode.

For instructions about how to set up the CommerceDirectMailer Authentication module on your site, see What is Direct Mail Authentication?

See Also

Other Resources

Configuring the Business Management Server