Click here to Skip to main content
12,882,806 members (39,701 online)
Rate this:
Please Sign up or sign in to vote.
See more: HTML
I am trying to send mail on submitt button click.
code is

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

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 2:35am
Updated 17-Jul-12 2:40am
Abdul Quader Mamun 17-Jul-12 8:40am
edited for code block n others.
aspnet_regiis 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
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:[^]
aspnet_regiis 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)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170422.1 | Last Updated 14 Sep 2012
Copyright © CodeProject, 1999-2017
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