Partager via


How to Configure the CommerceDirectMailer Authentication Module

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