close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Dynamic Subject Line

Thread began 1/09/2013 9:07 pm by kwb325686 | Last modified 1/11/2013 11:23 am by Jason Byrnes | 540 views | 3 replies |

kwb325686

Dynamic Subject Line

I am using the Contact Form from the solution kit. I have added a SELECT box to the form to give me the reason for the contact. I would like to append that selected <option> to the subject line set in the WP_Global so that it displays in the email header. Eventually, I would like that <option> to drive the To: addressee. How hard is this and what path should I take?
Thanks, Karl

Sign in to reply to this post

Jason ByrnesWebAssist

in the WA_Globals file, change the subject:

php:
$WAGLOBAL_Contact_Email_Subject = "Online Contact Form Response" ;



to:

php:
$WAGLOBAL_Contact_Email_Subject = "Online Contact Form Response ".isset($_POST['selectListName'])?$_POST['selectListName']:""."" ;



where selectListName is the name of the select list.

the same strategy can be used for the to address, but the value of the select list would nee to pass an email address.

Sign in to reply to this post

kwb325686

Thanks. Close, but no cigar. Instead of getting the desired "TWWWG Contact Form Response - Website Comment" I get only "Website Comment" without the lead. The code replaced the subject and did not append. I'm too new to know how to append the php file, so here's the WA_Globals line:
$WAGLOBAL_Contact_Email_Subject = "TWWWG Contact Response - ".isset($_POST['Subject'])?$_POST['Subject']:""."" ;
What did I do wrong?
I know we'll get there. Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

that code looks correct, it shouldn't be replacing the subject.


I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...