Click here to Skip to main content
15,886,654 members
Please Sign up or sign in to vote.
3.50/5 (2 votes)
See more:
Hi,
I need to send email from html page. Is it possible to send mail from html page using javascript or any other way?
Thank u
Posted
Comments
Abdul Quader Mamun 1-Dec-10 2:11am    
Have you tried with a tag in HTML?

Thank you for your question. I know a way that is,

XML
<a href="mailto:abc@yahoo.com">abc@yahoo.com</a>


It will open outlook for mailing.

Thanks,
Mamun
 
Share this answer
 
Comments
Toniyo Jackson 1-Dec-10 2:23am    
I want to send the my html page(html code). Is it possible?
Abdul Quader Mamun 1-Dec-10 2:29am    
Yes, you can add body text or attachment in it.

mailto:iudith.m@zim.co.il?subject=my report&body=see attachment&attachment="\\myhost\myfolder\myfile.lis"
Toniyo Jackson 1-Dec-10 2:32am    
Thanks. When i click it is opening outlook. i dont want send through outlook.
Abdul Quader Mamun 1-Dec-10 2:40am    
<script type="text/javascript" language="javascript">

function OpenMail()

{

location.href = 'mailto:abhishek@gmail.com?attachment="D:\\a.txt" ';

}


</script>
Toniyo Jackson 1-Dec-10 2:44am    
This also opening outlook. any other way?
 
Share this answer
 
Comments
Toniyo Jackson 1-Dec-10 2:24am    
I want to send the my html page(html code). Is it possible?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900