Zen Cart Logo
Forums / General Questions / Contact form subject drop down menu to different addresses

Contact form subject drop down menu to different addresses

Views: 1,514

Results 1 to 5 of 5
15 Aug 2012, 5:58 AM
#1
serg avatar

serg

New Zenner

Join Date:
Jan 2012
Posts:
60
Plugin Contributions:
0

Contact form subject drop down menu to different addresses

Hello, Me again :/

I've installed the add subject line to contact form, but i'm actually looking to make preset subject lines to different addresses
so on my email account it shows the subject line the customer selected for filtering purposes
right now I have done the Contact us drop down menu and it says
Send Email To:
it sends the email fine but the option you select doesn't show on the subject line in my email. also the Subject is still in the form.
I'm super confused, i've done research and couldn't find anything. help?
https://www.josephfilippiwinery.com/store/index.php?main_page=contact_us

thank you!

15 Aug 2012, 10:47 AM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Contact form subject drop down menu to different addresses

I guess I'm a little confused myself. The Send Email To: dropdown sends that email to a particular address you've specified in admin. The name you gave that option (Steve <steve@steve,com>) isn't passed to the recipient, but the email address that the message was sent to should be unique to that dropdown name, otherwise there isn't any reason to use the dropdown. If the customer specifies a Subject, that is sent on the Subject line.

If I'm not understanding the issue, let me know.

15 Aug 2012, 3:00 PM
#3
serg avatar

serg

New Zenner

Join Date:
Jan 2012
Posts:
60
Plugin Contributions:
0

Re: Contact form subject drop down menu to different addresses

OK, I don't want the subject line anymore, the name I gave that option I want it to also be the subject so on my email account it'll say Wholesale/Distributors etc....

15 Aug 2012, 9:09 PM
#4
jc8125 avatar

jc8125

Zen Follower

Join Date:
Oct 2007
Posts:
143
Plugin Contributions:
0

Re: Contact form subject drop down menu to different addresses

it's been awhile since I made that change, but I believe if you go into includes/modules/pages/contact_us/header.php and look for this line: ```
zen_mail($send_to_name, $send_to_email, EMAIL_SUBJECT, $text_message, $name, $email_address, $html_msg,'contact_us');

the third item being passed with this function is where the email_subject comes from.  currently, the code is set so that whatever subject the customer types will appear as the email subject.  To have the NAME from the dropdown menu show up as the subject, change to:

zen_mail($send_to_name, $send_to_email, [B]$send_to_name[/B], $text_message, $name, $email_address, $html_msg,'contact_us');


as always, backup and test changes before using on live site..
16 Aug 2012, 5:02 AM
#5
serg avatar

serg

New Zenner

Join Date:
Jan 2012
Posts:
60
Plugin Contributions:
0

Re: Contact form subject drop down menu to different addresses

Cool THank you!!! :)