This is a discussion on How can we send mail using JavaScript? within the PHP Programming forums, part of the Web Development category; hi, any one explain the above questions. ---Sundar Raja...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Mail 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 myfunction(form) { tdata=document.myform.tbox1.value; location="mailto:mailid@domain.com?subject=..."; return true; } |
| |||
| here we can send mail in HTML <a href="mailto:testmail@test.com">Click Here to send mail to testmail@test.com</a> while clicking the link provided by the above code, It goes to the default mail agent like Outlook or any other mail. From there you can send mail
__________________ With, J. Jeyaseelan Everything Possible |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to send mail with multiple attachments? | poornima | ASP and ASP.NET Programming | 5 | 02-01-2008 03:07 AM |
| How to Send mail using dot net ...? | a.deeban | ASP and ASP.NET Programming | 9 | 01-17-2008 09:20 PM |
| How to send data from servlet to javascript variables | Pvinothkumar | HTML, CSS and Javascript Coding Techniques | 0 | 10-09-2007 11:05 PM |
| How can we send mail using JavaScript? | Sabari | HTML, CSS and Javascript Coding Techniques | 3 | 09-12-2007 12:33 AM |
| How to Send Mail Using Stored Procedure in MS SQL SERVER 200x?? | Gopisoft | Database Support | 1 | 07-17-2007 09:43 AM |