Page 1 of 1

Email Contact Form - use form fields in email subject line?

Posted: Tue 12. Dec 2006, 20:11
by lburgess17
Is it possible to use form fields from the contact form in the Email Subject Line of the email message?

I tried adding it like this:

a message from {sender_email}

and it did not work.

Please advise.

Thanks,
Lburgess17

Posted: Tue 12. Dec 2006, 20:33
by Goran
...a message from {email_address} will work if email input field is named email_address:

Posted: Tue 12. Dec 2006, 22:06
by lburgess17
I tried this and still it just shows {name} in the subject line instead of the actual name. see below for how it is setup in the contact form itself.

Image

??
Lburgess17

Posted: Wed 13. Dec 2006, 08:09
by Klappstuhl28
Yes,

edited:
please try if a longer field name will work.
Such as "actual_name". I think oliver
had created a small let´say "security-syntax"

Lars

Posted: Wed 13. Dec 2006, 08:31
by juergen
Hey,

normally {name} should be renedered and replaced, if this machanism is set for mail- heading, what I think is so.

Make shure to have {name} instead of { name } with leading and following space, this might be reason for not replacing...

Jürgen

Still not working

Posted: Wed 13. Dec 2006, 16:14
by peteburgess
Hi. I am also working on this and using {actual_name} or {name} and not having spaces between the name and brackets doesn't seem to work.

If you have this in the subject:

{name} has sent you this email from our site.

The recipients email will say in the subject of the email:

{name} has sent you this email from our site.

The "name" field's name does not replace the {name} in the subject. Has anyone gotten this to work or has anyone had the same problem?

Thanks.