If you will to create an url with params like this:
http://url.com/user?emailid=12&phone=2234234234
than you should use HttpParams (or URLSearchParams for old (<4.3) Angular version). Here you can find a little bit more.
Here is an example based on your question data:
Angular v4.3+ with new HttpClientModule:
let httpParams = new HttpParams();
httpParams = httpParams.set('emailid', ctinvite.emp_email.toString());
httpParams = httpParams.set('phone', ctinvite.emp_phone.toString());
headers.append('Content-Type', 'application/X-www-form-urlencoded');
this.http.post('http://localhost:3000/sendmail', null, {headers: headers, params: httpParams});
Angular v4.3 and older with old HttpModule:
let params = new URLSearchParams();
params.set('emailid', ctinvite.emp_email.toString());
params.set('phone', ctinvite.emp_phone.toString());
headers.append('Content-Type', 'application/X-www-form-urlencoded');
this.http.post('http://localhost:3000/sendmail', null, {search: params, headers: headers});
If you will to send you data as FormData (that I see on your headers settings) so here is an example for that:
const formData = new FormData();
formData.append('emailid', ctinvite.emp_email.toString());
formData.append('phone', ctinvite.emp_phone.toString());
headers.append('Content-Type', 'application/X-www-form-urlencoded');
this.http.post('http://localhost:3000/sendmail',formData, {headers: headers});
If you will to send you data as JSON object, so you should make it like this:
let jsonData = {
emailid: ctinvite.emp_email,
phone: ctinvite.emp_phone
}
headers.append('Content-Type', 'application/json');
this.http.post('http://localhost:3000/sendmail', JSON.stringify(jsonData), {headers: headers});