---
title: "can we send mail using JavaScript?"  
description: "can we send mail using JavaScript?"  
author: "Dependra Pathak"  
published: 2011-03-29  
updated: 2011-03-29  
canonical: https://www.mindstick.com/forum/208/can-we-send-mail-using-javascript  
category: "javascript"  
tags: ["javascript"]  
reading_time: 1 minute  

---

# can we send mail using JavaScript?

I want to make [simple](https://yourviews.mindstick.com/story/1469/5-simple-ways-to-stay-fit-amp-healthy) [web application](https://www.mindstick.com/articles/13069/progressive-web-application-pwas-all-you-need-to-know-about) using [html](https://www.mindstick.com/articles/1530/design-a-simple-stylish-calculator-using-html-css-and-javascript) and [javascript](https://www.mindstick.com/articles/874/how-to-create-watermark-text-for-textbox-by-using-javascript) for mailing [system](https://www.mindstick.com/articles/23411/the-most-effective-method-to-find-the-perfect-small-business-phone-system-for-your-business)\
but i need \
how can we [send mail](https://www.mindstick.com/articles/1502/how-to-send-mail-in-node-js) using javascript?\
what will be the answer of its?

## Replies

### Reply by Amit Singh

No. There is no way to send emails directly using JavaScript. \
\
But you can use JavaScript to execute a client side email program send the email using the "mailto" code. Here is an example: \
\

```
function functioname(form)
{
tdata=document.myform.tbox1.value;
location="mailto:emailid@domain.com?subject=...";
return true;
}
```


---

Original Source: https://www.mindstick.com/forum/208/can-we-send-mail-using-javascript

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
