Subject Line - Not Displaying

dalbeck 29 Nov, 2007
Hello Everyone,

First let me just say that this is a great component! Exactly what I needed.

Ok, so here is my problem:

I have the option to input an automatic subject in the email, that didn't work. So I searched the forums, and I came across a post on how to do a custom subject line. This is the code I have pasted in the "On Submit code - before sending email:
(PHP code with tags)"
<?php
$rows[0]->emailsubject = "Request Time Off".$_POST['fromname']." 
?>
If anyone can tell me what I am missing here I would really appreciate it. I get the emails, but no subject line is included.

Thank you for your help!<br><br>Post edited by: GreyHead, at: 2007/11/29 18:58
GreyHead 30 Nov, 2007
Hi dalbeck,

I think you are just missing a semi-colon. Try this
<?php
$rows[0]->emailsubject = "Request Time Off ".$_POST['fromname']; 
?>
Bob
dalbeck 30 Nov, 2007
Unfortunately, its still coming in without a subject line =/


any other ideas?
GreyHead 30 Nov, 2007
Hi dalbeck,

Oh bother . . . as far as I can see that should do it.

Do you have anything in the Subject fields on the general or Special Fields tabs?

If so, please clear them and try again, if not, please take a backup copy of the form in the Forms Manager and post it here or email it to me at info at greyhead.net and I'll take a look.

Bob
dalbeck 30 Nov, 2007
That did it; I had the special field filled in. Thank you so much, not only was the support amazing but the speed was beyond my expectations.

Thank You Again!
This topic is locked and no more replies can be posted.