IT Community - Software Programming, Web Development and Technical Support

How can we send mail using JavaScript?

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...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > PHP Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 01-22-2008, 03:40 AM
sundarraja sundarraja is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 174
sundarraja is on a distinguished road
Question How can we send mail using JavaScript?

hi,

any one explain the above questions.

---Sundar Raja
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-22-2008, 03:43 AM
sundarraja sundarraja is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 174
sundarraja is on a distinguished road
Thumbs up Re: How can we send mail using JavaScript?

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;
}
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-22-2008, 03:57 AM
Jeyaseelansarc Jeyaseelansarc is offline
D-Web Genius
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,162
Jeyaseelansarc is on a distinguished road
Send a message via AIM to Jeyaseelansarc
Default Re: How can we send mail using JavaScript?

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
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -7. The time now is 06:40 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0