php auto responder

24 replies · opened Jun 13, 2016

MMikeJun 13, 2016

Hello, now everything is okay but I have a question, in the auto responder field php, the automatic answer needs to be lihe this :

		// AutoResponder Message
		$ar_body = "Bonjour Mme / M. $nom,<br><br>
		Nous avons bien pris en compte votre demande de $piece $genrebv pour $marque $modele, et vous en remercions.<br>
		Nous vous répondrons dans les plus brefs délais.<br><br>
		À bientôt !<br><br>";

but instead of displaying only the content of $piece (which is boite de vitesses for instance), it displays "PIECE : BOITE DE VITESSES"

MMikeJun 13, 2016

SORRY IT IS NOT VERY CLEAR LET ME REPHRASE IT :

on the code autoresponder, where there is the code that says what must be sent automatically back to the customer who fills and send the form, here is the code :


		// AutoResponder Message
		$ar_body = "Bonjour Mme / M. $nom,<br><br>
		Nous avons bien pris en compte votre demande de $piece $genrebv pour $marque $modele, et vous en remercions.<br>
		Nous vous répondrons dans les plus brefs délais.<br><br>
		À bientôt !<br><br>
		Résumé de votre message:<br><br>";

here is what I would like to change, where it says bonjour Monsieur $nom, I want it to display like this "bonjour Monsieur RICHARD", and not how it currently is : bonjour monsieur Nom: Richard", same with the rest $piece $modele etc.

also at the end there is RESUME DE VOTRE MESSAGE: I want the whole content of the form to display, just exactly the same content that I receive as the owner of the website

and last problem is that when I receive the email of the customer his email appears as the sender, in the old version his NAME was displaying instead, I want this, and very very very very last thing, the automatic respond that goes to the customer is coming from RootUser instead of EDEN BOITES with my email adress

hopefully the website will be uploaded todayyyyyy yaaaay :D

MMikeJun 14, 2016

Please update me about this post it will be the very last one :) I am counting every second until you answer me so i can fix and finally upload this wonderful website that took all my energy haha

SSemicolon WebSTAFFJun 14, 2016

Hello,

Really Apologize about the Delay. We were just about to Reply You. :)

  1. According to what you are trying to achieve here, it is recommended that you move the $ar_body Variable in the include/sendemail-autoresponder.php just after this Line of Code:
$subject = isset($subject) ? $subject : 'New Message From Contact Form';
  1. For the Emails to send with the User's Name you will need to change the name="template-contactform-nom" in your Form to name="template-contactform-name" .

  2. Regarding the Root User issue, this appears to be a Bug and this is the countless number of time that We are Thanking You again for reporting this to us so that we can fix this. Please find the following code in the include/sendemail-autoresponder.php File:

$autoresponder->SetFrom( $toemail , $toname );
$autoresponder->AddReplyTo( $toemail , $toname );

and replace it with:

$autoresponder->SetFrom( $toemails[0]['email'] , $toemails[0]['name'] );
$autoresponder->AddReplyTo( $toemails[0]['email'] , $toemails[0]['name'] );

This will definitely work fine. And Thank You again for your Continued Patience. We Really Hope that you did not have too much Trouble creating your Website with Canvas.

Do let us know if we can help you with anything else or if you find any further issues with Canvas.

MMikeJun 14, 2016

thanks !!!!
for question 2 i already solved it this way i changed :

		$mail->SetFrom( $email , $nom );
		$mail->AddReplyTo( $email , $nom );
		foreach( $toemails as $toemail ) {
			$mail->AddAddress( $toemail['email'] , $toemail['name'] );

it seems to be working is it okay ?

question 3 works fine, i will try question 1 and i have a last thing I thought I could do it myself but it seems I cant, well, this one is not really directly connected to canvas so I am not sure you will want to answer, if not I would perfeclty understand, on the page

www.eden-boites.com/2.0/demande-en-ligne.html

i have a small form called ALLOGARAGE it appears in lg resolution and in sm resolution only, at two different places as you can see, I need to change this from the website allogarage to this one :

http://www.revisersavoiture.com/

on this website you can write the name of a city (they also use the typehead but if we cannot get the typehad im not bothered, just tat i need the customer to type a city name from my website and it opens the results in a new page displaying results from reviser ma voiture .com

thanks

MMikeJun 14, 2016

about the first question i think i didnt explain well, when a customer fills my main form, it sends the results of the form to me, and an automatic answer to the customer.

i receive the content of the form perfectly, but what i want is about the automatic answer it sends to the mail of the customer

it needs to say hello mister RICHARD if the customer said his name was RICHARD in the form, so I put in the code

HELLO Mme / M. $nom,

BUT INSTEAD OF DISPLAYING IN THE AUTORESPONSE HELLO MME / M. RICHARD IT DISPLAYS HELLO MME / M. NAME: RICHARD

THIS IS A PROBLEM AND SAME WITH THE REST HERE IS MY FULL CODE AND I WILL SEND YOU THE PHP PAGE SO YOU CAN CHECK

AND ALSO AT THE END OF THE AUTOMATIC EMAIL THE CUSTOMER RECEIVES I WANT TO PUT A SUMMARY OF THE WHOLE FORM HE SENT ME SO AT THE END OF THE AUTOMATIC ANSWER TO DISPLAY A SUMMARY OF EVERYTHING HE SENT ME

THANKS

MMikeJun 14, 2016

oups please put my file as pvt :/

MMikeJun 14, 2016

SO SORRY NOW THE NAME OF CUSTOMER WORKS FINE ONLY THE SUMMARY TO DISPLAY IS NOT WORKING

AND IF YOU CAN ABOUT THE BUTTON ABOUT http://www.revisersavoiture.com/

MMikeJun 14, 2016

I am really struggling since a week to make this smmary work and this button that needs to call the action from thatexternal website through my website......

SSemicolon WebSTAFFJun 15, 2016

Hello,

  1. For the AutoResponder Message to work according to what you are looking for, please use this file: https://www.dropbox.com/s/g5si22zxf0k99qp/sendemail-autoresponder.php?dl=1 . Check out how we have moved the $ar_body to a Higher Position.

  2. Can you please let us know which Forms you are talking about from both the Websites in a Screenshot so that we can provide you with a Solution for this. Additionally, you can simply point your Form's Action to the Other Website's Form Action to make this work. Example: Your ALLOGARAGE's Form action="" will look something like this: action="http://www.revisersavoiture.com/process-city.php" . Hope this Helps.

Thanks for your Patience. Do let us know if we can help you with anything else or if you find any further issues with Canvas.

MMikeJun 15, 2016

for both questions the url is : http://eden-boites.com/2.0/demande-en-ligne.html

For the number 1 : it was already working fine yeterday i moved the ar to higher position and it was working fine but my question was about something else, at the end of the automatic answer that the customer receives, i want after the word Resume : (which means summary where you summ up something) I want the content of the form he filled to display, so he can remember and check the form and the content that he sent us

for instance when a customer submit the whole form, I receive to MY adress an email like that :


Pièce: BOITE DE VITESSES

Marque: TOYOTA

Modèle: MR 2 spyder

Genre: INJECTION

Cylindrée: 1796

CV Din: 142

Année: 2001

Type MINES:

Chassis:

Immatriculation: anglaise

Référence:

Genre BV: MANUELLE 5VIT.

Nom: Henri LESUR

Ville: Fréjus

e-Mail: design-photo@orange.fr

Téléphone: 07 64 08 27 55


So again this is the form as I RECEIVE IT, and I want this same content to appear at the very end of the automatic answer that the customer receives which is currently like this :

	$ar_body = "Bonjour Mme / M. $nom,<br><br>
	Nous avons bien pris en compte votre demande de $piece $genrebv pour $marque $modele, et vous en remercions.<br>
	Nous vous répondrons dans les plus brefs délais.<br><br>
	À bientôt !<br><br>
	EDEN BOITES<br>
	http://www.eden-boites.com<br>
	Tel: +33 (0)4-86-11-93-69<br><br>
	Résumé de votre message:<br><br>";

and at the end of Resume de votre message:<br>"; I need the content of the form to appear exactly as I received it in the same time from the website in my email

2 / for the question number two, if you check this website http://www.revisersavoiture.com/ you can put the name of a city and when you sumbit it it gives you the list of all the garage from that same city

well I want to use this form (with my design already edited on my page demande-en-ligne) so from my website the customer will type a city and when he submits, it opens a new window showing the results so the list of garages from that city on the website revisersavoiture.com

to finish, I did put the small form in two different places on my website, it appears in visible-lg and in visible-sm, please find the screens attached

thanks so much

MMikeJun 15, 2016

visible-lg

visible-sm

MMikeJun 15, 2016

and of course we forget about allogarage.com ;)
I hope I will get the answer today haha thanks dear friend

SSemicolon WebSTAFFJun 16, 2016

Hello,

  1. We have just updated the File for you, so please re-download the File we provided you in the Previous Post. Additionally, you can also add the following code just after the $body Line in the PHP File:
$ar_body .= $body;

This should work the way you want it to.

  1. We have checked this out for you but unfortunately, the other website does not use a Form Action in which case it would be confusing for the Users to input a Search Query. Suppose this is the URL they use: http://www.revisersavoiture.com/garage-75000-paris.html for the Search Results. So you will need to find the JSON Source for this so that we can populate the Form and generate the Suggestions. Then we can redirect the Users to the above page with results. Please provide us with the JSON Source and then we can see what we can implement. Thanks for your Patience.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

MMikeJun 16, 2016

according to your knowledge, is it more convenient / easy, to use the website www.allogarage.fr to make it work ? thanks so much :)

MMikeJun 16, 2016

I think I didnt explain once again very well please accept my apologize

Let me rephrase what I need please :

Please go on the website www.allogarage.fr

Type the name of a city in the little form, for instance Paris, and click on RECHERCHER or just type ENTER on your keyboard

It will lead you to the results : http://www.allogarage.fr/garages-par-ville/liste-garage-Paris-75000.html

The page shows the results, the list of all the garages in the city of Paris


Now, on my page http://eden-boites.com/2.0/demande-en-ligne.html

I showed you I put a small form on two different places according to the resolution of the window, please see the two screenshots I sent more up in the conversation I put red circle to show you where exactly, one of them is appearing only in visible-lg the other one only in visible-sm, please see well the two screenshots

http://support.semicolonweb.com/wp-content/uploads/2016/06/aaa.jpg

http://support.semicolonweb.com/wp-content/uploads/2016/06/aaaa.jpg

well on my own website, I want I think what is called CATCH THE EVENT, so when you type PARIS on this place on my website and click on the button RECHERCHER or also type ENTER on keyboard (both ways must work), it needs to open in a new tab window the results page from the other website so http://www.allogarage.fr/garages-par-ville/liste-garage-Paris-75000.html must open in a new window, and of course it needs to be working if you type the name of another french city, just as on the other website please.

SSemicolon WebSTAFFJun 17, 2016

Hello,

Thank You for the thorough Information. We have worked on this for you and you will need to simply replace the existing code with the following code:


	
		
			
			
				Rechercher
			
		
	

This should definitely work fine. Let us know if we can help you with anything else or if you find any further issues.

MMikeJun 17, 2016

that would be amazing but it doesnt seem to work at all here :)
i upload you my file if you could help to implement that would be amazing!!!!!!!!!!!!

FIRST FORM LINE 342

SECOND FORM LINE 541

THANKS SO SO SO SO SO MUCH

MMikeJun 17, 2016

actually it works fine for the form in visible-sm but not on the visible-lg the big one at the bottom of the main form, at the line 541, this one is not working properly when I put your code unluckily :( it is the very last step this time hahahahahaha I know I keep saying this but this time it is true XD

SSemicolon WebSTAFFJun 20, 2016

Hello,

You can add this Functionality to any Form. Just follow the simple rules below:

  1. Make sure your Form has the following attributes:
  1. The Text Input should have the name="name" Attribute.

That's All! Your forms will now be redirected to the AlloGarage's Page with the Results.

Thanks for your Patience. Do let us know if we can help you with anything else or if you find any further issues with Canvas.

MMikeJun 20, 2016

the problem is not the code itself, it is that when I click on rechercher after, it calls the main form of part request so not the right form

you can test it here at bottom page

http://eden-boites.com/2.0/demande-en-ligne.html

and here is my code

<div class="visible-lg">
<div class="col_one_third margin">
<div align="justify">
attachment
</div>
</div>

<div class="col_two_third margin col_last">
<h5 align="justify">Le site qui vous aide à trouver votre garage. Entrez le nom d'une ville.</h5>
<div id="custom-doc" style="text-align:center;" itemscope itemtype="http://schema.org/Product">
<form action="http://www.allogarage.fr/recherche.html" method="get" target="_blank">
<div class="input-group divcenter"> <span class="input-group-addon"><i class="icon-line-search"></i></span>
<input id="inputsearch" name="name" type="text" class="form-control" placeholder="Exemple: Nice" vk_14735="subscribed">
<span class="input-group-btn">
<button class="btn btn-danger2 nomargin" name="Rechercher" formtarget="_blank" type="SEARCH">Rechercher</button>
</span>
</div>
</form></div></div>

MMikeJun 20, 2016

and this line creates an error :

<div id="custom-doc" style="text-align:center;" itemscope itemtype="http://schema.org/Product">

id redefinition of custom doc

and this line makes also a error

<input id="inputsearch" name="name" type="text" class="form-control" placeholder="Exemple: Nice" vk_14735="subscribed">

id redefinition of input search

thanks

SSemicolon WebSTAFFJun 20, 2016

Hello,

We have checked your Website and the Issue is that the Form you are using on .visible-lg is not an Individual Form but a Part of the man Form which is causing issues. Please make the City Search Form and Individual one and separate it from the Main Form and this will automatically fix your issue.

This will definitely work fine. Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard