Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8396903
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T20:39:16+00:00 2026-06-09T20:39:16+00:00

hi i am using the linkedin api to send invitations . in the message

  • 0

hi i am using the linkedin api to send invitations . in the message

<?xml version='1.0' encoding='UTF-8'?>
<mailbox-item>
  <recipients>
    <recipient>
      <person path='/people/~'/>
    </recipient>
    <recipient>
      <person path="/people/abcdefg" />
    </recipient>
  </recipients>
  <subject>Congratulations on your new position.</subject>
  <body>You're certainly the best person for the job!</body>
</mailbox-item>

in the <body> section i am trying to add some HTML .

like

<b>You’re certainly the best person for the job!</b>

but the problem is it is shown as text as it is in the message recieved by the friend , instad of that i want to bold the message content . how can i do this . is there any configuration should be done .

i am using codeigniter

function send_messeges($access_token, $xml_atring) {

    $profile_url = "http://api.linkedin.com/v1/people/~/mailbox";
    $xml = '<?xml version="1.0" encoding="UTF-8" ?>
        <mailbox-item>
          <recipients>                
            ' . $xml_atring . '
          </recipients>
          <subject>'.$this->send_subject.'</subject>
          <body>'.$this->send_message.'</body>
        </mailbox-item>';
    $request = OAuthRequest::from_consumer_and_token($this->consumer, $access_token, "POST", $profile_url);
    $request->sign_request($this->method, $this->consumer, $access_token);
    $auth_header = $request->to_header("https://api.linkedin.com");
    $response = $this->httpRequest($profile_url, $auth_header, "POST", $xml);        
    return $response;

}

please help . thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T20:39:17+00:00Added an answer on June 9, 2026 at 8:39 pm

    If you want to wrap html in xml, you have to use a construct like this:

    <xmltag><![CDATA[<b>html text</b>]]></xmltag> 
    

    But be careful to read the api docs:

    https://developer.linkedin.com/documents/messaging-between-connections-api

    body mailbox-item yes The body of the message. Cannot contain HTML.
    Must be editable by the member sending the message.

    This shows you cannot use html here.

    You can however use basic string formatting such as newlines to have at least some paragraphs:

    This is done via \n (escaped newline) within the string.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using LinkedIn API. I have done all process to retrieve access token.
I am Using LinkedIn-j API for LinkedIn Integration. I am able to post Status
I am trying to integrated linkedIn using this question answer Posting LinkedIn message from
i am trying to make the post using my linkedin api application, The issue
I'm using an external Node.js module, everyauth , to handle my LinkedIn API authentication.
I'm trying to access out-of-network profiles using the LinkedIn API, following the instructions from
I'm using the linkedin JS-API This example I'm accepting the company name from the
This is regarding about LinkedIn group API. I'm using this API to get relevant
I want to send messages to multiple friends in linkedin using python. from docs
I am using linkedin api to get info about the logged in user. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.