Page 1 of 1
					
				"Reply to"
				Posted: Fri Jul 09, 2021 10:26 am
				by Patounet
				Hello, small question, is it possible in a form that the answer to this request is sent directly to the address entered in this form by the user? 
via reply to ?...
Tkx
			 
			
					
				Re: "Reply to"
				Posted: Fri Jul 09, 2021 11:30 am
				by Pablo
				If the name of the email input field is 'email' then this will be used as the 'reply to' address.
			 
			
					
				Re: "Reply to"
				Posted: Fri Jul 09, 2021 12:36 pm
				by Patounet
				Ok 
and $mailfrom works or i need another variable in "More form processor properties" Reply To: 
Tkx
			 
			
					
				Re: "Reply to"
				Posted: Fri Jul 09, 2021 1:31 pm
				by Pablo
				Please keep '$mailfrom'. See also the information in the help.
			 
			
					
				Re: "Reply to"
				Posted: Fri Jul 09, 2021 1:40 pm
				by Patounet
				Thanks Pablo, but it doesn't work. I renamed the email field to "email" ... 
It does not add the reply to field in the email
No problem.
			 
			
					
				Re: "Reply to"
				Posted: Fri Jul 09, 2021 2:46 pm
				by Pablo
				To be able to help you, I need to see all your settings.
Do you have a demo project with the form?
			 
			
					
				Re: "Reply to"
				Posted: Sat Jul 10, 2021 8:46 am
				by Patounet
				
			 
			
					
				Re: "Reply to"
				Posted: Sat Jul 10, 2021 9:56 am
				by Pablo
				Everything looks correct.
This is the generated code:
Code: Select all
$mailfrom = isset($_POST['email']) ? $_POST['email'] : $mailto;
$header .= 'Reply-To: '.$mailfrom.$eol;
 
			
					
				Re: "Reply to"
				Posted: Sat Jul 10, 2021 10:43 am
				by Patounet
				Oki!
I put this code where ?  
 
 
Sorry for my incompetence in coding ...
 
			
					
				Re: "Reply to"
				Posted: Sat Jul 10, 2021 11:39 am
				by alan_sh
				I don't think you have to put the code anywhere - that us what WWB produces.
You do need to test it on a server that supports PHP - so you can't test it on your PC.
Alan
			 
			
					
				Re: "Reply to"
				Posted: Sat Jul 10, 2021 11:58 am
				by Patounet
				Of course, i test on PHP serveur !  

 
			
					
				Re: "Reply to"
				Posted: Sat Jul 10, 2021 11:59 am
				by Pablo
				I don't think you have to put the code anywhere - that us what WWB produces.
You do need to test it on a server that supports PHP - so you can't test it on your PC.
Correct!
 
			
					
				Re: "Reply to"
				Posted: Sat Jul 10, 2021 4:38 pm
				by Patounet
				Oh, so it's weird, if you test the demo, there is no "reply to" in the mail.
No problem, I'll do without.
Have a good week-end.
			 
			
					
				Re: "Reply to"
				Posted: Sat Jul 10, 2021 4:53 pm
				by WWBman
				The form should have a Success page and an Error page.