"Dynamic Subject" in RC3 and RC4

dennybot 01 Apr, 2009
Folks just did a search on the current thinking on dynamic subject.

I'm sure my issue has been discussed before, but I want to see if anything is coming out or just came out for this...

The issue is the classic problem of certain email clients (gmail, etc.) grouping emails into threads by their subject lines. I need my submissions to generate a unique email, or at the very least unique to the dynamic name.

What's the current (v3.1 RC3) way to generate a true dynamic subject line that has hard coded text along with any unique identifyer from the form, such as the "dynamic from" name.

So to sum up, what I'm looking to do for the "dynamic subject" is:

Make an Appointment Submission by {dynamic name}

Is this attainable in the front end of Chronoforms or do I need to modify the PHP code?
GreyHead 02 Apr, 2009
Hi Dennybot,

I'm not sure exactly where this is in RC3 (Max may be making it a little simpler in the current releases).

I think I would add a hidden field to contain a dummy subject and build the dynamic value of the Subject in the OnSubmit Before box using setVar
<?php
$name = JRequest::getVar('name', '', 'post');
$subject = "Some string of text $name";
JRequest::setVar('subject', $subject, 'post');
?>

Bob
Max_admin 03 Apr, 2009
Hi Dennybot,

you can use Bob's code in RC3 for now, in RC4 there will be a standard API functions to use for this, no hacks will be needed!

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.