10394 Posts in 2203 Topics by 1714 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 854 Views |
-
Userforms: set the subject

10 June 2009 at 10:44pm
Currently the subject of the email I get is "Contact Form" which is the page name.
I can see in SubmittedFormEmail.ss <h1>$Subject</h1> which I can change for the body of the email but what about the actual subject of the email? it would be good if I could change this in the CMS, can this be done?
-
Re: Userforms: set the subject

11 June 2009 at 7:56pm
You need to change the php-code. There is no way to change the email´s title in the cms.
-
Re: Userforms: set the subject

11 June 2009 at 8:00pm
If you use the recently released 0.2 version of user forms then you can customize the subject heading in the cms.
-
Re: Userforms: set the subject

11 June 2009 at 8:04pm
I'm running v2.3.1 though
and cannot upgrade.
How can I hard code this?
-
Re: Userforms: set the subject

13 June 2009 at 12:30am
In UserDefinedForm.php you have the following lines:
if( $this->EmailOnSubmit ) {
$email = new UserDefinedForm_SubmittedFormEmail($submittedFields);
$email->populateTemplate($emailData);
$email->setTo( $this->EmailTo );
$email->setSubject( $this->Title );
Changeto the string you want to have as subject of the email. Do the same some lines below for the $emailToSubmiter object. That´s it.$this->Title
-
Re: Userforms: set the subject

16 June 2009 at 8:11pm
I have already figured that out, but I'd really like this to be set in the CMS for each userform. It's no good setting the subject to lets say "Contact Form Submission" when I have another form which is not a contact form.
-
Re: Userforms: set the subject

16 June 2009 at 11:00pm
Then you should upgrade or implement that function by youself.
-
Re: Userforms: set the subject

17 June 2009 at 8:28pm
For those that do not know v0.2 of user forms will let you dynamically set the subject, from address, to address all from the CMS.
However User Forms v.0.2 requires SS 2.3.2 beta, which has not yet been released as a stable version. It will NOT work with the current release (v.2.3.1).
| 854 Views | ||
|
Page:
1
|
Go to Top |



