How to Send a Message with a email form and a simple message editbox

Issues related to forms.
Post Reply
NOVEL
 
 
Posts: 4
Joined: Sat Dec 01, 2018 1:31 pm

How to Send a Message with a email form and a simple message editbox

Post by NOVEL »

Hello,
I wanna create a simple window to send a message to a fixed email Adress,
I created my form with the form wizard by using 'Business Contact' template, and I modified the action property to define my adress by mailto:philippe.novel@soprabanking.com?subject=Contact Information,
But I want to provide to the user a field to enter his message and I don't understand how to proceed.
Could you help me ?
Thanks in advance,
Best regards,
Philippe

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Feedback</title>
<meta name="generator" content="WYSIWYG Web Builder 14 - http://www.wysiwygwebbuilder.com">
</head>
<body>
<div id="wb_feedbackForm1">
<form name="contact" method="post" action="mailto:philippe.novel@soprabanking.com?subject=Contact Information" enctype="text/plain" id="feedbackForm1">
<input type="text" id="feedbackEditbox1" name="Nom du client " value="Jean Pierre DURAND" spellcheck="false">
<label for="feedbackEditbox2" id="feedbackLabel2">Email Gestionnaire :</label>
<input type="text" id="feedbackEditbox2" name="email" value="AlainRobert@CEIDF.com" spellcheck="false">
<input type="submit" id="feedbackButton1" name="" value="Send">
<label for="feedbackEditbox1" id="feedbackLabel1">Nom du Cédant:</label>
<label for="feedbackEditbox2" id="feedbackLabel3">Message :</label>
<textarea name="feedbackTextArea1" id="feedbackTextArea1" rows="7" cols="28" spellcheck="false"></textarea>
</form>
</div>
<link href="Test.css" rel="stylesheet">
<link href="feedback.css" rel="stylesheet">
</body>
</html>
MGD4me
 
 
Posts: 287
Joined: Tue May 02, 2017 11:56 pm
Location: British Columbia, Canada

Re: How to Send a Message with a email form and a simple message editbox

Post by MGD4me »

The "mailto:" action will cause the user's email client to open. When this happens the user adds whatever comments or questions he may have into the body of the email, and then he/she presses 'Send". Just a normal email function.
NOVEL
 
 
Posts: 4
Joined: Sat Dec 01, 2018 1:31 pm

Re: How to Send a Message with a email form and a simple message editbox

Post by NOVEL »

Hi,
Thank you Pablo and MGD4me for your so quick answers,

On first hand, with my form the system opens an email window (outlook) to capture and send a message, but I want to pre-fill the proposed message in the email window with some pre-defined informations.

On Second hand, before to post my request actually I followed your tutorials especially the feedback.php form example, but it didn't work, so perhaps I forgot to follow something... so I'll retry later.

Thanks again,

Best regards,
Philippe
User avatar
Pablo
 
Posts: 21569
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: How to Send a Message with a email form and a simple message editbox

Post by Pablo »

Using outlook/mailto for forms is not reliable.
I recommend to use the built-in script or a third party form processor for sending emails.

In the built-in form script you can set a message.
Post Reply