sending email to an "unknown" email address RRS feed

  • Question

  • If I have an email form open and I type an address into the To field and that email address doesn't resolve to some customer record, it will go anyway -- I believe.

    How do I get that same functionality using the create message?  I tried writing it to the email.torecipients field but nothing ends up in the To field on the form and when you try to send it rejects as not having at least one recipient.

    I'm going to try loading an activity party of contact type but I don't know how to form it?

     <partyid type='contact' name='mardukes@cs.com'>00000000-0000-0000-0000-000000000000
    • Edited by mardukes Saturday, November 20, 2010 6:38 PM this is SOAP, by the way
    Saturday, November 20, 2010 6:12 PM


All replies

  • ...or should is this it, just use the system user as Party but reset the address?

      <partyid type='systemuser'>" + senderid + "</partyid>

    The form, however, doesn't reveal the alternate address...

    Saturday, November 20, 2010 6:37 PM
  • Here's some helpful information on using Unresolved Email addresses in CRM:  http://blogs.inetium.com/blogs/azimmer/archive/2009/08/08/crm-4-0-using-unresolved-email-addresses.aspx
    Dave Berry - MVP Dynamics CRM - http:\\crmentropy.blogspot.com
    • Proposed as answer by Amarsen Vangoor Sunday, November 21, 2010 5:28 PM
    • Marked as answer by mardukes Monday, November 22, 2010 5:23 AM
    Saturday, November 20, 2010 7:06 PM
  • Amazing!  Where do you guys come up with this stuff?!

    if (crmForm.FormType == 1 &&
      crmForm.all.regardingobjectid.DataValue != null &&
      crmForm.all.regardingobjectid.DataValue[0].typename == "incident" &&
      window.opener != null &&
      window.opener.document != null &&
      window.opener.document.crmForm != null &&
      crmForm.all.to.DataValue == null) {
      var ar = new Array();
      var emailObj = new Object();
      if (window.opener.document.crmForm.all.zyx_emailtoaddress != null &&
        window.opener.document.crmForm.all.zyx_emailtoaddress.DataValue != null) {
        emailObj['type'] = '9206';
        emailObj['category'] = '3';
        emailObj['data'] = window.opener.document.crmForm.all.zyx_emailtoaddress.DataValue;
        emailObj['name'] = window.opener.document.crmForm.all.zyx_emailtoaddress.DataValue;
      crmForm.all.to.DataValue = ar;
    Monday, November 22, 2010 5:31 AM