This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 2
<br/> in email subject field
Started 17 years ago by icore | 4 posts |
- 
		
		
	
		
		
		
We created a form for inquiries that are forwarded to an email address. The 'Subject' field contains value of a Checklist field.
The problem is that "<br/>" is appearing along with the value. For example, if the customer selects 'Option 1' the email shows 'Option 1 <br/>'.
Posted 17 years ago # - 
		
		
		
		
		
Hi,
You have to edit "include/helper-functions.php" file, search around line 439 you will find this code :
$mail->Subject = str_replace(' ','',$subject);and insert this code below line 439
$mail->Subject = str_replace('',' ',$subject);MachForm Support
Posted 17 years ago # - 
		
		
	
		
		
		
I made the change as you suggested, but it did not work.
Any other suggestions?
Posted 17 years ago # - 
		
		
		
		
		
Upss ... I'm sorry my bad .. the change should like this :
$mail->Subject = str_replace('<br />',' ',$subject);please try it :)
MachForm Support
Posted 17 years ago # 
Reply
You must log in to post.
