Jump to content

Send message to BackOffice and then email customer


Recommended Posts

Hi,
First, please excuse my English.

I have created page diamonds.php in PS root. On this page I can set up parameters. I need to create a Submit button that sends the message to the administrator, and email parameters back to the user.

Similarly, when a user writes a message via the contact-form.php. The parameters have stored as a string in the InputBox. And this chain needs to send to both parties.

I have no idea to do this.

I have this form:

<form action="{$request_uri|escape:'htmlall':'UTF-8'}" method="post" class="std">



     <input type="text" id="params" name="params" value="Something i need to send" />
            


     <input type="submit" name="submitMessage" id="submitMessage" value="{l s='Send'}" class="button_large"     style="background-color:transparent;"/>


</form>



And in diamonds.php i have this:

  if (Tools::isSubmit('submitMessage')){
   echo 'Send the message and Email';
 }



But i dont know how to continue.

Many thanks in advance

Link to comment
Share on other sites

×
×
  • Create New...