-3

API を介してメールを送信しようとしていますが、すべてのメール アドレスに対して「受信者のメール アドレスが無効です。受信者 ID が続きます」というエラーが表示されます。前もって感謝します

APIを介していくつかのことをしようとしています。

  1. 既存のすべてのテンプレートを docusing に手動でアップロードします (dpd 形式のテンプレートが約 10 あります)。
  2. サーバーでドキュメントを作成します。

  3. API を介してエンベロープを作成します。

  4. 作成したドキュメントをドキュシングで適切なテンプレートに適用します。(私はこれをやろうとしています - コードが添付されています)
  5. 封筒を送ります。(ここでエラーが発生しました)

  6. 署名されたドキュメントをサーバーにダウンロードします。– (これは完了です。)

.

 public void ApplyToTemplate()
{
    //// Create the recipient information
    //recipient1
    DocuSignWeb.Recipient recipient1 = new DocuSignWeb.Recipient();
    recipient1.UserName = "Client";
    recipient1.Email = "XXXX@gmail.com";
    recipient1.Type = DocuSignWeb.RecipientTypeCode.Signer;
    recipient1.RequireIDLookup = false;
    recipient1.RequireIDLookupSpecified = true;
    recipient1.RoutingOrder = 1;
    recipient1.RoutingOrderSpecified = true;
    recipient1.RoleName = "Client";
    recipient1.ID = "1";


    DocuSignWeb.Recipient[] recipients = new DocuSignWeb.Recipient[] { recipient1 };
    // Create the template reference from a server-side template ID
    DocuSignWeb.TemplateReference templateReference = new DocuSignWeb.TemplateReference();
    templateReference.Template = "XXXX";
    templateReference.TemplateLocation = DocuSignWeb.TemplateLocationCode.Server;

    //templateReference.Document = new DocuSignWeb.Document();
    //templateReference.Document.PDFBytes = ConvertWordToPdfByte(@"c:\temp\a.doc");
    // Construct the envelope information

    DocuSignWeb.EnvelopeInformation envelopeInfo = new DocuSignWeb.EnvelopeInformation();
    envelopeInfo.AccountId = "XXXXX";
    envelopeInfo.Subject = "hello from API";
    envelopeInfo.EmailBlurb = "hello";

    // Create draft with all the template information
    DocuSignWeb.EnvelopeStatus status = _apiClient.CreateEnvelopeFromTemplates(new DocuSignWeb.TemplateReference[] { templateReference }, recipients, envelopeInfo, false);

    DocuSignWeb.EnvelopeStatus sendStatus = _apiClient.SendEnvelope(status.EnvelopeID, envelopeInfo.AccountId);

}
4

1 に答える 1

0

送信している生の SOAP リクエストをキャプチャしてその内容を検査する必要があります。設定しようとしている電子メール アドレスが変更され、正しい形式で送信されていないようです。

Microsoft の SOAP ExtensionsWiresharkなどのプログラムなど、未加工のリクエスト データを簡単にキャプチャできるツールがたくさんあります。

それらのいずれかを使用してリクエストを検査し、どの部分が間違っているかを確認してください

于 2013-10-08T17:47:48.307 に答える