Contact Us Subject

I searched the forums and found this question asked many times, but no solution posted. I am wondering if anyone knows how to change the Contact Us form so it puts the subject that the customer types as the email subject line?



My problem is that Gmail groups all of my Contact Us emails together as if it was one thread.



Thanks for any help.



Adam

bump. Any help would be appreciated.



Thanks,



Adam

anyone? I figured I would try one last time.



Thanks,



Adam

This is for v2.0.11. Hopefully it will be the same for v2.0.8. Under addons\form_builder\func.php:



find:

}
$max_length += 2;




change:


if ($v['description'] == 'Subject') {
$page_data['page'] = $form_values[$k];
}
}
$max_length += 2;

[quote name=‘nmb’]This is for v2.0.11. Hopefully it will be the same for v2.0.8. Under addons\form_builder\func.php:



find:

}
$max_length += 2;
change:


if ($v['description'] == 'Subject') {
$page_data['page'] = $form_values[$k];
}
}
$max_length += 2;
[/quote]

Thank you,



It works great with 2.1.0, and I added to the code the translation for the word “Subject” to support multi language as follows:



```php if ($v[‘description’] == ‘موضوع الرسالة’ || $v[‘description’] == ‘Subject’) {

$page_data[‘page’] = $form_values[$k];

} ```

Hi,

This is exactly what we need. Would this be a modification that we would make directly to the addons\form_builder\func.php file - or is it something we would somehow put into the my_changes folder on the skin we’re using?



Would we need to expect this to be overwritten on an upgrade?



Thanks!

This works great with 2.1.4; just tested! I love using Gmail~

Awesome - still works in 2.2.3.



Thank you!

[quote name='nmb' timestamp='1261451454' post='64892']

This is for v2.0.11. Hopefully it will be the same for v2.0.8. Under addons\form_builder\func.php:



find:

}
$max_length += 2;




change:


if ($v['description'] == 'Subject') {
$page_data['page'] = $form_values[$k];
}
}
$max_length += 2;


[/quote]



Thank you so much



It works for Multivendor edition also. I appreciate your help.



Regards

Shuaib

[url=“http://shopping.edeal.in/”]http://shopping.edeal.in/[/url]

[quote name='nmb' timestamp='1261451454' post='64892']

This is for v2.0.11. Hopefully it will be the same for v2.0.8. Under addons\form_builder\func.php:



find:

}
$max_length += 2;




change:


if ($v['description'] == 'Subject') {
$page_data['page'] = $form_values[$k];
}
}
$max_length += 2;


[/quote]



Has anybody tried this with 4.2? Doesn't work on my end.

[quote name='buging' timestamp='1416691198' post='197705'] Has anybody tried this with 4.2? Doesn't work on my end. [/quote]



We have just tried and it works. Note that the correct path is app/addons/form_builder/func.php

[quote name=‘eComLabs’ timestamp=‘1416820007’ post=‘197779’]

We have just tried and it works. Note that the correct path is app/addons/form_builder/func.php

[/quote]

my bad. yes it works on 4.2 :) thank you



any idea how to get the first_name as well?

[quote name=‘buging’ timestamp=‘1417044823’ post=‘198089’]

my bad. yes it works on 4.2 :) thank you



any idea how to get the first_name as well?

[/quote]



What do you want to do with the first name?

[quote name='eComLabs' timestamp='1417081341' post='198134']

What do you want to do with the first name?

[/quote]

thanks for the response. basically i'd like to get the name and use it as the reply-to (ex. “[color=#800000][font=Consolas, Menlo, Monaco,]John Doe j.doe@domain.com”). How do I capture “John Doe” (if possible)? [/font][/color]

[quote name='buging' timestamp='1417084509' post='198147']

thanks for the response. basically i'd like to get the name and use it as the reply-to (ex. “[color=#800000][font=Consolas, Menlo, Monaco,]John Doe j.doe@domain.com”). How do I capture “John Doe” (if possible)? [/font][/color]

[/quote]



I am not sure, if this feature supported by the Mailer class, but the logic is the same. For example, the name of the field is First Name



if ($v['description'] == 'First Name') {
$captured_name = $form_values[$k];
}

Just wanted to bump this because it's still working after all of these years.

app/addons/form_builder/func.php

                if ($v['description'] == 'Subject') {
                    $page_data['page'] = $form_values[$k];
                }