Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

504
Views
send email via email client,

In my project on click of a button I need to open outlook with send to, sent from and email body are filled. here is my code

var a = $("#emailLink");
        var emlBody =
            encodeURIComponent(result.data.EmailBody);

        var url = 'mailto:' + result.data.ClientEmail + '?subject=' + result.data.Subject + '&body=' + emlBody;
        $(a).attr("href", url);
        a[0].click();

body length goes beyond 2000 length, so i get this message

Launched external handler for 'client@mail.com?subject=a%20subject&body=a%20long%20message'.

how do i fix this, also how can i add text formatting to work in outlook

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

The mailto protocol doesn't support any formatting for the message body. This is a plain text property.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!