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 71405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T19:52:57+00:00 2026-05-10T19:52:57+00:00

This is a little confusing to explain, so bear with me here… I want

  • 0

This is a little confusing to explain, so bear with me here…

I want to set up a system where a user can send templated emails via my website, except it’s not actually sent using my server – it instead just opens up their own local mail client with an email ready to go. The application would fill out the body of the email with predefined variables, to save the user having to type it themselves. They can then edit the message as desired, should it not exactly suit their purposes.

There’s a number of reasons I want it to go via the user’s local mail client, so getting the server to send the email is not an option: it has to be 100% client-side.

I already have a mostly-working solution running, and I’ll post the details of that as an answer, I’m wondering if there’s any better way?

  • 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. 2026-05-10T19:52:58+00:00Added an answer on May 10, 2026 at 7:52 pm

    The way I’m doing it now is basically like this:

    The HTML:

    <textarea id="myText">     Lorem ipsum... </textarea> <button onclick="sendMail(); return false">Send</button> 

    The Javascript:

    function sendMail() {     var link = "mailto:me@example.com"              + "?cc=myCCaddress@example.com"              + "&subject=" + encodeURIComponent("This is my subject")              + "&body=" + encodeURIComponent(document.getElementById('myText').value)     ;          window.location.href = link; } 

    This, surprisingly, works rather well. The only problem is that if the body is particularly long (somewhere over 2000 characters), then it just opens a new email but there’s no information in it. I suspect that it’d be to do with the maximum length of the URL being exceeded.

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

Sidebar

Related Questions

Can you please explain this code? It seems a little confusing to me Is
This might get a little confusing as I have tried everything to make this
This one is a little confusing to me. I'm running a LAMP server with
This one might be a little confusing. I'm using AMCharts with rails. Amcharts comes
found this little code snippet that seems to do what i want, but im
This one is a little difficult to explain so I'll show code first.. Note:
So let me explain my problem a little better now (please reopen this question).
This may be a little confusing but I having some trouble. My goal is
My apologies if the title of this thread is a little confusing. What I'm
If that was a little confusing here's a visual representation: Array > Object >

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.