title: Acrobat JavaScript mailDoc operation failing
body: <p><strong>Goal:</strong> I have a fillable PDF form that collects data required to send an email. In the PDF, I have a button to send the PDF, using the mailDoc function on mouse up.  </p>
  
  <pre><code>if(app.viewerVersion &lt; 11 )
     app.alert("Please download the latest version of Reader",1);
  
  var cToAddr = "email@yahoo.com";
  var cBCCAddr = "email@yahoo.com";
  var cCCAddr = this.getField("ClientEmail").value;
  var cBenAddr = this.getField("BennyEmail").value;
  
  if(cBenAddr != "") {
      cCCAddr += ";" + cBenAddr;
  }
  
  var cSubLine = "Service Proposal " + this.getField("ServiceAddress").value + " " + this.getField("Text1").value;
  var cBody = "Thank you for the opportunity. Please see attached proposal.\n" + "Save the filled form attachment for your own records";
  
  this.mailDoc({
      bUI: true, 
      cTo: cToAddr, 
      cCc: cCCAddr, 
      cBcc: cBCCAddr,
      cSubject: cSubLine, 
      cMsg: cBody
  });
  </code></pre>
  
  <p><strong>Error Message:</strong> </p>
  
  <pre><code>GeneralError: Operation failed.
  Doc.mailDoc:22:AcroForm:Email Quote:Annot1:MouseUp:Action1
  </code></pre>
  
  <p>I've followed <a href="https://acrobatusers.com/tutorials/dynamically-setting-submit-e-mail-address" rel="nofollow noreferrer">this guide</a> and added a cBcc as they did in <a href="https://answers.acrobatusers.com/Programmable-button-to-initiate-MailDoc-Javascript-code-not-working-on-first-attempt-q276562.aspx" rel="nofollow noreferrer">this community post</a>, but it had no impact.  </p>
  
  <p>The fields are accurately named, and it prompts me to sign into my email account when I press the button, so I'm not sure what is causing the issue, and can't find documentation for mailDoc to help.</p>