Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi..
I am trying to send mail on submitt button click.
code is

XML
<form method="post" action="mailto:<email@address>" enctype="text/plain">
</form>


The form's action is just a simple mailto: command. Put the email address that the form should send to here.

enctype="text/plain" makes the form more readable as plain text in an email.

Be warned that when a user hits the submit button on this form he will be prompted with something like below:

"This form is being submitted using e-mail.
Submitting this form will reveal your e-mail address to the recipient, and will send the form data without encrypting it for privacy.
You may continue or cancel this submission."

provide solution for it.thanx
Posted
Updated 17-Jul-12 2:40am
v4
Comments
Abdul Quader Mamun 17-Jul-12 8:40am    
edited for code block n others.
bbirajdar 17-Jul-12 9:16am    
This warning is the security feature and prevents user's email and outlook data. You cannot disable it.

1 solution

You cant do anything about that warning when sending mail like this. To get rid of this warning you will have to do the sending server side.

If you use .net framework you can read about sending email in this article A Simple But Effective Way to Send an Email using SmtpClient Class[^]

if you are using PHP: http://php.net/manual/en/function.mail.php[^]
 
Share this answer
 
v2
Comments
bbirajdar 17-Jul-12 10:16am    
He wants to send email using HTML only. As far as I know, emails cannot be sent from the client side ..i.e. HTML, javascript or active x
Vijay Walunj,Navi mumbai 21-Jul-12 1:06am    
is there any outlook setting which prevents this warning.
Vijay Walunj,Navi mumbai 21-Jul-12 1:07am    
In other browser it opens the outlook which also i dont want.provide soln for this.

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