Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: HTML
hi..
I am trying to send mail on submitt button click.
code is
 
<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 17-Jul-12 3:35am
Edited 17-Jul-12 3:40am
v4
Comments
Abdul Quader Mamun at 17-Jul-12 8:40am
   
edited for code block n others.
aspnet_regiis at 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

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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[^]
  Permalink  
v2
Comments
aspnet_regiis at 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 at 21-Jul-12 1:06am
   
is there any outlook setting which prevents this warning.
Vijay Walunj,Navi mumbai at 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)



Advertise | Privacy | Mobile
Web04 | 2.8.150129.1 | Last Updated 14 Sep 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100