Dynamic Subject problem

mattiadj 14 Dec, 2009
Hi,
i need to insert a costant text before the name of select in the subject of mail.

For example i need to get an email with this format of subject "Preventivo per select_5" where
"Preventivo per" is a costant text and select_5 is the name of the select. So, dependin of the type of option of select i have a lot of combination with the constant text.

I try to insert in Dynamic Subject something like "Preventivo per select_5" but dosen't works.
Any tip for me??

Regards
mattiadj 14 Dec, 2009
Thanks for reply but in my case for example where i must insert the name of select?
I must do something like this?

<?php
$subject = date('YmdHis').'select_5';
JRequest::setVar('subject', $subject);
?>


Regards
GreyHead 20 Dec, 2009
Hi mattiadj,

I think that you needsomething more like:
<?php
$select_5 = JRequest::getVar('select_5', '', 'post');
$subject = date('YmdHis').' - '.$select_5;
JRequest::setVar('subject', $subject);
?>

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