+ Reply to Thread
Results 1 to 9 of 9

Thread: FromAddr in ini file?

  1. #1
    Join Date
    Jul 2007
    Posts
    35

    Smile FromAddr in ini file?

    Hello,

    Figuring stuff out well. One question so far though...

    My server sends my form result emails from Nobody as a result of deriving my email setting.

    I can fix this by putting this in the form:

    <input name="mail_options" type="hidden" value="FromAddr = me@mydomain.com">

    However! I have grown fond of the ini file and was curious how i would put it in there.

    I tried:

    mail_options = "FromAddr = me@mydomain.com"

    but it's a no go.

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

    Default Re: FromAddr in ini file?

    Hi,

    Did you put it in a section called "[special_fields]"?
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  3. #3
    Join Date
    Jul 2007
    Posts
    35

    Default Re: FromAddr in ini file?

    Hello,

    Yes I did. I am using PHP 4.4.4, not sure if that is important because the standard layout seems to be working for me.

    [special_fields]
    recipients = "my@recipientemail.com"
    required = "Full_Name:Your Full Name,Email_Address:Email Address,imgverify:Image Verification"
    subject = "My Site - Order Submission"
    good_url = "http://www.mysite.com/template/thankyou.htm"
    bad_url = "http://www.mysite.com/fmbadhandler.php"
    bad_template = "http://www.mysite.com/template/error.htm"
    this_form = "http://www.mysite.com/order.php"
    deriver_fields = "email = Email_Address"

  4. #4
    Join Date
    Dec 2003
    Posts
    3,900

    Default Re: FromAddr in ini file?

    Hi,

    Your mail_options should work in this section in the INI file.

    This should go in the HTML not in the INI file. It will work in the INI, but it's just the wrong place for it.

    deriver_fields = "email = Email_Address"
    Typo: derive_fields not deriver_fields
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  5. #5
    Join Date
    Jul 2007
    Posts
    35

    Default Re: FromAddr in ini file?

    Ok

    Ya sorry for the typo. Ok i'll try it again.

    The reason i hid the location of my form is for security reasons.

    I'm still not sure where exactly i should save my form and ini files. Should they be located above the public_html folder or are they fine in there?

    Thanks, great script.

  6. #6
    Join Date
    Jul 2007
    Posts
    35

    Default Re: FromAddr in ini file?

    Nope, mail_options doesn't seem to work for me in the ini file.

    It does for you?

  7. #7
    Join Date
    Dec 2003
    Posts
    3,900

    Default Re: FromAddr in ini file?

    Hi,

    No, it looks like there's an issue with mail_options in the INI file. This will be fixed in a later version.

    In the meantime, following the HOW TO guide to achieve what you want.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  8. #8
    Join Date
    Jul 2007
    Posts
    35

    Default Re: FromAddr in ini file?

    I realize now that the gibberish i was talking about hiding my form for security was just a link back to my form lol...

    I spent the greater part of 2 days trying to absorb the form creation process.

    Well, i know it's the wrong place to ask, but could you answer the question regarding where the formmail.php and ini files should be saved?

    Should i save them one step above the public_html folder or put them in the public folder? Just curious if someone could do something harmful if they are in the public folder or not.

    Currenty i have created an .htaccess with the following to block the ini file though:
    <files *.ini>
    order deny,allow
    deny from all
    </files>

    Thanks

  9. #9
    Join Date
    Dec 2003
    Posts
    3,900

    Default Re: FromAddr in ini file?

    Hi,

    FormMail must be in public_html or lower.

    The INI file can be anywhere that it is protected from web access.

    Using .htaccess to protect it is fine.

    The only harmful thing anyone can do is see what's in there and using that informatin in some way (e.g. send spam to your email address).
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

+ 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. mutiple recipients not working with ini file
    By saejoon in forum Bug Reports
    Replies: 3
    Last Post: 25-Sep-2006, 06:53 PM
  2. mutiple recipients not working with ini file
    By saejoon in forum Community Support
    Replies: 1
    Last Post: 19-Sep-2006, 10:51 PM
  3. Trouble with the formmail ini function
    By Carina in forum Community Support
    Replies: 3
    Last Post: 17-Sep-2006, 03:48 PM
  4. Replies: 1
    Last Post: 23-Aug-2006, 10:32 PM
  5. Formmail ini file
    By Wayne Hammond in forum Features Questions
    Replies: 5
    Last Post: 28-Jun-2006, 03:05 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