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

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
lburgess17
Posts: 39
Joined: Fri 29. Apr 2005, 06:22
Location: US

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

Post 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
Goran
Posts: 81
Joined: Thu 27. Nov 2003, 11:43
Location: Zagreb, Croatia
Contact:

Post by Goran »

...a message from {email_address} will work if email input field is named email_address:
lburgess17
Posts: 39
Joined: Fri 29. Apr 2005, 06:22
Location: US

Post 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
User avatar
Klappstuhl28
Posts: 833
Joined: Fri 4. Mar 2005, 01:58
Location: Hamburg
Contact:

Post 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
Last edited by Klappstuhl28 on Wed 13. Dec 2006, 09:10, edited 3 times in total.
Lars

Don't say you don't have enough time. You have exactly the same number of hours per day that were given to Helen Keller, Pasteur, Michaelangelo, Mother Teresa, Leonardo da Vinci, Thomas Jefferson, and Albert Einstein. - H. Jackson Brown -
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Post 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
peteburgess
Posts: 18
Joined: Thu 9. Nov 2006, 20:29

Still not working

Post 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.
Post Reply