I couldn't find this anywhere, but i had a problem recently. I use webforms to track several issues at work.
Due to the large volume of emails, the recipients need to filter it based on the subject. To this do this, webform would need the ability to prepend text in the subject line to match someone's email filters.
For example, I've got a form that takes a customers Address field that populates in the subject line. Since this data is unique it wouldn't hit the filter unless webform prepends "Customer Address: " in the subject line.
Here is how I got this to work. Keep in mind I have zero PHP programming experience so I'm sure there's a much better way to do this. I just hope the developers add something like this in so I won't have to keep modifying each new release.
I added a new row in the DB called 'email_pretext' with the same values as email_subject. Below is a `diff -u' of the changes.
--- webform.module.old 2006-09-19 14:04:38.000000000 -0500
+++ webform.module 2006-09-19 18:29:33.000000000 -0500
@@ -100,7 +100,7 @@
}
// Insert the Webform
- db_query("INSERT INTO {webform} (nid, confirmation, redirect_post, submit_limit, submit_interval, email, email_from, email_subject) VALUES (%d, '%s', %d, %d, %d, '%s', '%s', '%s')", $node->nid, $node->confirmation, $node->redirect_post, $node->submit_limit, $node->submit_interval, $node->email, $node->email_from, $node->email_subject);