![]() |
Contact form for multiple email addresses
Hello, I am trying to add optional email addresses for the contact us form. I have 3 departments (Sales, Technical, and Web design) that all have different email addresses. I see you can select a department when sending a message from the customer contact form but, the department value doesn't change where the email goes and doesn't display in the email subject line, it is only visible once you open the email. Unfortunately I am not a programmer I have looked in to the /include/help.php/ file to make this happen but this is a little over my head. The idea is,
If department value=sales send to sales@website.com ElseIf department value=Technical send to tech@website.com Else send to webdesign@website.com Is this possible? Already available as a module or extension? If this is not possible, I'd be interested in finding out how to add the department value to the subject line of the emails coming from the contact form. This would be useful in forwarding mail without having to open each email. Any assistance or direction is most appreciated. Thanks, Charles 4.5.x Gold mobile |
Re: Contact form for multiple email addresses
Are you sure it doesn't send to different departments already? That would surprise me. Check what email addresses are set for the different departments in General Settings> Company. Near the bottom of the page, are there different email addresses set? And it doesn't send to the different emails? Sorry for double checking something obvious, I always assumed that worked.
|
Re: Contact form for multiple email addresses
Thanks for responding Mike, nothing wrong with double-checking. I have the Company emails set up with separate addresses and the Company "from" email is blank. All notifications are being delivered to their proper addresses. The kink in the system is that you must assign an email address to the Help/Support department and all emails from the "contact us" page are routed to that one address. I did try it without assigning an address for Help/Support and it caused an error and failed to send the message. I was hoping it would direct the message to the right department, but no.
|
Re: Contact form for multiple email addresses
In order to add the "Department" to the subject line of emails coming from the Contact Us page, you will need to edit the help_contactus_subj.tpl file. The file location is /common_files/mail/help_contactus_subj.tpl.
Find: {config_load file="$skin_config"}{$config.Company.company_name} : {$lng.eml_contact_us_subj} And change to: {config_load file="$skin_config"}{$config.Company.company_name} - {$contact.department}: {$lng.eml_contact_us_subj} That's it. I am still very interested in finding a solution to direct the email to the separate email addresses of each department. If anyone has some direction on where I might start, suggestion, or solution, my ears are wide open. Thanks for reading. |
All times are GMT -8. The time now is 04:51 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.