Results 1 to 5 of 5

Thread: Creating a more customizable $FROM_USER setting

  1. #1
    Join Date
    Feb 2007
    Posts
    2

    Default Creating a more customizable $FROM_USER setting

    As with many who post here, I'm very impressed with the power, flexibility, and support of FormMail and the encryption/decryption tools. So much so, I've decided to change over all of my college's forms to use Formmail.

    My goal is to have a templatible form creation process, with a single master formmail.php to define directories of templates, email addresses, logs, CSV files, etc. For the most part, it works really well. Separating the locations of directories (defined in formmail.php) from the names and settings of the files (defined in the HTML form) works brilliantly, with one exception.

    When I try to define the "from" address in the auto response email message (generated from the image verification form) it seems I can only do that with the $FROM_USER setting in the formmail.php file. This means for each auto response form that I create that has a different "sender", I'll need a separate formmail.php file. (Although I'm responsible for sending them all, it is helpful to have different reply-to email addresses for specific departments, programs and events.)

    I'm new to FormMail so maybe I've missed it, but wouldn't it make sense to define the $FROM_USER setting in the HTML form so it can be customized as necessary?

  2. #2
    Join Date
    Dec 2003
    Posts
    3,980

    Default Re: Creating a more customizable $FROM_USER setting

    Hi,

    Thanks for the information about what you're attempting.

    You're right - $FROM_USER is the setting used as the sender/from address of the autoresponse.

    I'll put this on the TO DO list (you're lucky, a new version of FormMail will be released shortly).

    We'll add this as an option to the "autorespond" field, like this:
    HTML Code:
    <input type="hidden" name="autorespond" value="...,FromAddr=you@yourserver.com,..." />
    And, you can replace the @ with the AT_MANGLE string, or use the INI file for complete protection.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  3. #3
    Join Date
    Dec 2003
    Posts
    3,980

    Default Re: Creating a more customizable $FROM_USER setting

    Hi,

    OK, FormMail version 7.14 now supports the FromAddr feature in the "autorespond" field.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  4. #4
    Join Date
    Feb 2007
    Posts
    2

    Default Re: Creating a more customizable $FROM_USER setting

    Thank you for making this update. I think it will help a lot.

    What should the setting now be for $FROM_USER ?

    Should I still set [$FROM_USER = "formmail@yourhost.com";] as a backup, in case I forget to add it to the HTML form or should I set it to "NONE" or "" ?

    Will the new FromAddr value conflict with the $FROM_USER setting or will the form only take the value from one or the other?

  5. #5
    Join Date
    Dec 2003
    Posts
    3,980

    Default Re: Creating a more customizable $FROM_USER setting

    Hi,

    What should the setting now be for $FROM_USER ?
    Probably "". It's used for alert messages too. So, if you don't need it for your alert messages to be sent, don't set it.

    Should I still set [$FROM_USER = "formmail@yourhost.com";] as a backup, in case I forget to add it to the HTML form or should I set it to "NONE" or "" ?
    Well, I guess you avoid "forgetting" by testing. You can set it as a backup if you wish.

    Will the new FromAddr value conflict with the $FROM_USER setting or will the form only take the value from one or the other?
    No conflict. If the autoresponse field specifies FromAddr, then it is used, otherwise FROM_USER is used.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Creating an automated account setup script using Formmail
    By dsy in forum FormMail Subscription Support
    Replies: 1
    Last Post: 06-Dec-2005, 06:39 AM
  2. Error: The "csvcolumns" setting is not valid: "" [M76]
    By redragon in forum FormMail Subscription Support
    Replies: 2
    Last Post: 25-Sep-2005, 09:15 PM
  3. Invalid PHP pages creating duplicate content
    By treborito in forum FormMail Subscription Support
    Replies: 2
    Last Post: 12-Jul-2005, 03:38 AM
  4. Creating CSV files (databases)
    By russellr in forum HOWTO Guides and Tips
    Replies: 0
    Last Post: 13-Aug-2004, 10:45 PM
  5. Creating mail object using Mail::factory ("smtp", ....) and FormMail
    By stingray in forum FormMail Subscription Support
    Replies: 1
    Last Post: 13-Jul-2004, 09:27 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
  •