CP form: dynamic subject possible?

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
silbro
Posts: 4
Joined: Mon 21. Jan 2008, 16:22
Location: Switzerland | Zürich

Re: CP form: dynamic subject possible?

Post by silbro »

Maybe I should play around with the script a bit more then ;) multiple receipients and sending it to a friend was logical for me too just didnt get the hang of making a box where the user can choose to which email adress he wants to send it to :) But I'll go try it again, thx!
silbro
Posts: 4
Joined: Mon 21. Jan 2008, 16:22
Location: Switzerland | Zürich

Re: CP form: dynamic subject possible?

Post by silbro »

I don't understand how to make a dropdown menu where I can choose to send the email to :( I made a dropdownmenu with emails and saved them in emails but i cant leave the to email blank, even deleting in the config file doesnt help. I also can't put something like that in there {dropdownvalue} How do I solve this problem? :(
User avatar
Oliver Georgi
Site Admin
Posts: 9917
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: CP form: dynamic subject possible?

Post by Oliver Georgi »

You cannot use dropdown menus to choose email from because system will always need to check validity of email address! Only field type email can be used!

It's better to use a small frontend_init script to proof customers input and fill in the correct recipient based on processed result.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
silbro
Posts: 4
Joined: Mon 21. Jan 2008, 16:22
Location: Switzerland | Zürich

Re: CP form: dynamic subject possible?

Post by silbro »

Ok, so the user can type in where he wants to send it to but is not able to choose from a dropdown menu if I understand you correctly because the form is being checked for a valid email adress.
User avatar
Oliver Georgi
Site Admin
Posts: 9917
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: CP form: dynamic subject possible?

Post by Oliver Georgi »

That's right. But as I have written - using a frontend_init script it is possible.

But you can use a custom template - then you can also use such dropdown menu. But I cannot recommend this because all spam harvesters will have fun catching the email addresses.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Re: CP form: dynamic subject possible?

Post by Jensensen »

Hello Oliver, hi folks,

[x]

case 'A': --> selectable recipients
[x]

case 'B': --> different salutation depending on s-e-x of sender

[x]
Mrs. ---> 'Sehr geehrte Frau {name}' or
Mr. ---> 'Sehr geehrter Herr {name}'...
[x]
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
Post Reply