Forums

Fromname

yanema 13 Jul, 2011
In my form I use forname and lastname fields.in let's say dynamic from name I can only select one item. In my case forname or lastname. When I receive emails I want to see both in my from box. Can you help???
Is it possible to change it in an HTML of PHP file? Thanks

Ydzardt Anema
GreyHead 14 Jul, 2011
Hi Ydzardt,

Please see this post. You can do the same kind of thing with the Dynamic Reply To Name box.

Bob

PS I strongly recommend that you do *not* use the Dynamic From Email element in your Email Setups. Using this often results in your emails being marked as spam and dropped into a spam filter. Instead use the static From Email with an address that matches the site domain name and use Dynamic ReplyTo Email for the user email. The result is the same but with a much better chance of good delivery.
yanema 14 Jul, 2011
Hi Bob,

Can I access the PHP file, because I can't find the PHP file in the version 3.2 or in com_chronocontacts on the server.
I mean this file:

<?php
$v1 = JRequest::getString('variable1', '', 'post');
$v2 = JRequest::getString('variable2', '', 'post');
$subject = $v1.$v2;
// use this line for CFv3
JRequest::setVar('subject', $subject);
// use this lien for CFv4
$form->data['subject'] = $subject;
?>


Thanks for your help

Ydzardt
GreyHead 17 Jul, 2011
Hi yanema,

There is no PHP file to edit:

You need to create a new variable with the value you want using a Custom Code action (in CFv4) or the OnSubmit Before Email box (in CFV3)


Bob
This topic is locked and no more replies can be posted.