title: Generate VCard and Send Via Twilio
body: <p>I am writing a Twilio + Parse app which lets users share their contact info via SMS. I have a sample Vcard as a string in javascript:</p>
  
  <pre><code>  message = '';
    message += 'BEGIN:VCARD';
    message += 'BDAY;VALUE=DATE:1963-09-21';
    message += 'VERSION:3.0';
    message += 'N:Stenerson;Derik';
    message += 'FN:Derik Stenerson';
    message += 'ORG:Microsoft Corporation';
    message += 'ADR;TYPE=WORK,POSTAL,PARCEL:;;One Microsoft Way;Redmond;WA;98052-6399;USA';
    message += 'TEL;TYPE=WORK,MSG:+1-425-936-5522';
    message += 'TEL;TYPE=WORK,FAX:+1-425-936-7329';
    message += 'EMAIL;TYPE=INTERNET:deriks@Microsoft.com';
    message += 'END:VCARD';
    message += 'BEGIN:VCARD';
    message += 'VERSION:3.0';
    message += 'N:Ganguly;Anik';
    message += 'FN:Anik Ganguly';
    message += 'ORG: Open Text Inc.';
    message += 'ADR;TYPE=WORK,POSTAL,PARCEL:;Suite 101;38777 West Six Mile Road;Livonia;MI;48152;USA';
    message += 'TEL;TYPE=WORK,MSG:+1-734-542-5955';
    message += 'EMAIL;TYPE=INTERNET:ganguly@acm.org';
    message += 'END:VCARD';
    message += 'BEGIN:VCARD';
    message += 'VERSION:3.0';
    message += 'N:Moskowitz;Robert';
    message += 'FN:Robert Moskowitz';
    message += 'EMAIL;TYPE=INTERNET:rgm-ietf@htt-consult.com';
    message += 'END:VCARD';
  </code></pre>
  
  <p>And I am trying to figure out how to send this to a phone number as a vcard so the phone detects it instead of the text.</p>
  
  <p>I have a method:</p>
  
  <pre><code>function respondWithMessage(message, response) {
    response.set('Content-Type', 'text/xml');
    var xmlVersion = '&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\n';
    message = '&lt;Message&gt;\n' + message + '\n&lt;/Message&gt;';
    message = '&lt;Response&gt;\n' + message + '\n&lt;/Response&gt;';
    message = xmlVersion + message;
    response.send(message);
  }
  </code></pre>
  
  <p>With which I am able to send text messages.
  In their documentation, Twilio states that text/vcard messages are supported here:
  <a href="https://www.twilio.com/docs/api/rest/accepted-mime-types" rel="noreferrer">https://www.twilio.com/docs/api/rest/accepted-mime-types</a>
  But I have been unable to get it to work.
  Could you provide an example of how to send this VCard via SMS with Twilio?
  Thanks!</p>