+ Reply to Thread
Results 1 to 2 of 2

Thread: Trouble Inserting Field Value in Email Subject Line

  1. #1
    Join Date
    May 2007
    Posts
    1

    Default Trouble Inserting Field Value in Email Subject Line

    I am using mail_options, an autoresponder and the good_template feature in one form, all with html templates. The form successfully inserts a custom email subject in both internal email and autoresponder following the instructions for each as follows:

    <input type="hidden" name="mail_options" value="HTMLTemplate=internalconf.html,TemplateMissing=" />
    <input type="hidden" name="subject" value="Subject Appears Properly This Way" />

    <input type="hidden" name="autorespond" value="HTMLTemplate=customerconf.html,
    Subject=Subject Also Appears Properly This Way,TemplateMissing=" />

    When I try to insert a subject for each, with the purpose of adding a literal string followed by the input to a field, using the "derive_fields" method as described in the following posts I get only blank subject lines or no email sent at all.

    http://www.tectite.com/vbforums/showthread.php?t=470

    http://www.tectite.com/vbforums/showthread.php?t=1524

    This is my code for the internal email which is producing a blank subject line:

    <input type="hidden" name="mail_options" value="HTMLTemplate=internalconf.html,TemplateMissing=" />
    <input type="hidden" name="subject" value="" />
    <input type="hidden" name="derive_fields"
    value="subject=%'Literal String Here'% +field_name" />

    It's not clear in the how-to guide for deriving fields whether the second input above is necessary or not. I have tried without it and with no value and null value and nothing works.

    This is my code for the autoresponder email which does not even send an autoresponse:

    <input type="hidden" name="derive_fields"
    value="autorespond=%'HTMLTemplate=customerconf'%.
    %2E%.%'html'%.%2C%.
    %'Subject=Form Submission Confirmation'%+field_name.%2C%.
    %'TemplateMissing='%" />

    Can anyone out there please help me figure this out?


  2. #2
    Join Date
    Dec 2007
    Posts
    4

    Default Re: Trouble Inserting Field Value in Email Subject Line

    I'm don't know about your autoresponse issue, but your subject line is being set to nothing by this line:

    <input type="hidden" name="subject" value="" />

    Instead you need to refer to the field you created using derive_fields as follows:

    <input type="hidden" name="subject" value=subject />

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Having trouble with the CC & BCC
    By madref in forum FormMail Subscription Support
    Replies: 5
    Last Post: 01-Oct-2004, 05:31 AM
  2. Pull-Down Menu for the Subject
    By sdavistx in forum FormMail Subscription Support
    Replies: 1
    Last Post: 01-Jul-2004, 10:16 PM
  3. Subject=<no subject>?
    By Thomas in forum FormMail Subscription Support
    Replies: 2
    Last Post: 14-Jun-2004, 11:35 PM
  4. Subject?
    By WuLabsWuTecH in forum FormMail Subscription Support
    Replies: 1
    Last Post: 08-Apr-2004, 12:03 AM
  5. Mail Trouble
    By madref in forum FormMail Subscription Support
    Replies: 3
    Last Post: 30-Mar-2004, 11:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts