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)"
Thank you for your help!<br><br>Post edited by: GreyHead, at: 2007/11/29 18:58
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
Hi dalbeck,
I think you are just missing a semi-colon. Try this
I think you are just missing a semi-colon. Try this
<?php
$rows[0]->emailsubject = "Request Time Off ".$_POST['fromname'];
?>Bob
Unfortunately, its still coming in without a subject line =/
any other ideas?
any other ideas?
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
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
This topic is locked and no more replies can be posted.
