다음을 통해 공유


TestDirectMail Method

Sends a test mail out for a direct mail by scheduling a direct mailer job to run immediately.

Namespace:  Microsoft.CommerceServer.Marketing.WebService
Assembly:  Microsoft.CommerceServer.Marketing.DataManagement (in Microsoft.CommerceServer.Marketing.DataManagement.dll)

Syntax

'Declaration
<WebMethodAttribute> _
Public Overridable Sub TestDirectMail ( _
    campaignItemId As Integer _
)
'Usage
Dim instance As MarketingWebService
Dim campaignItemId As Integer

instance.TestDirectMail(campaignItemId)
[WebMethodAttribute]
public virtual void TestDirectMail(
    int campaignItemId
)
[WebMethodAttribute]
public:
virtual void TestDirectMail(
    int campaignItemId
)
public function TestDirectMail(
    campaignItemId : int
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

There is no direct mail with the specified Id.

NotAuthorizedException

The user is not authorized to perform the requested operation.

InvalidCatalogOperationException

No test list specified for the direct mail.

EntityStateException

No destination list specified for the direct mail.

MaximumValueValidationException

There are too many users in the test list for this direct mail.

DatabaseIntegrityException

A serious integrity issue with the database exists.

Remarks

Sends a test mail out for a direct mail by scheduling a direct mailer job to run immediately.

Permissions

See Also

Reference

MarketingWebService Class

MarketingWebService Members

Microsoft.CommerceServer.Marketing.WebService Namespace