+ Reply to Thread
Results 1 to 7 of 7

Thread: CSV file is still encoded when Filter=CSV

  1. #1
    Join Date
    Feb 2009
    Posts
    31

    Default CSV file is still encoded when Filter=CSV

    I have set FormMail up to create a CSV file of the form data & send it as an attachment to the email. When I receive the attachment the data is encrypted.

    I accomplished this with
    <input type="hidden" name="filter" value="csv" />
    <input type="hidden" name="filter_options" value="Attach=data.csv" />
    <input type="hidden" name="filter_fields" value="ProformQty,Name,Telephone" />

    In my formmail.php,
    $FILTER_ATTRIBS = array("encode"=>"Strips,MIME=application/vnd.fmencoded,Encrypts",
    "httpencode"=>"Strips,MIME=application/vnd.fmencoded,Encrypts",
    "sslencode"=>"Strips,MIME=application/vnd.fmencoded,Encrypts",
    "csv"=>"Strips,MIME=text/csv",);

    I'm assuming that since "csv"=>"Strips,MIME=text/csv" does not have an Encrypts at the end of it, it is not supposed to encrypt the data. Is this assumption incorrect? I do not want the data encrypted in my CSV file.

    Thanks.

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

    Default Re: CSV file is still encoded when Filter=CSV

    Hi,

    Sorry for the slight delay in replying.

    FILTER_ATTRIBS tells FormMail what each filter does.

    It's stating what happens rather than telling FormMail what to do.

    The values are very technical to FormMail and are not documented for that reason. We're pretty much the only people who create filters.

    The "csv" filter does no encryption at all. And, yes, FILTER_ATTRIBS is indicating that because it doesn't have the Encrypt value shown for "csv".

    I hope that helps.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  3. #3
    Join Date
    Feb 2009
    Posts
    31

    Default Re: CSV file is still encoded when Filter=CSV

    No worries. Happy to have a reply at all.

    Still a question, though.

    If my html looks like this...
    <input type="hidden" name="filter" value="csv" />
    <input type="hidden" name="filter_options" value="Attach=data.csv" />
    <input type="hidden" name="filter_fields" value="ProformQty,Name,Telephone" />

    Then my csv file should NOT look like this...
    Content-Type: text/csv; name="data.csv"; charset=ISO-8859-1
    Content-Transfer-Encoding: base64
    Content-Disposition: attachment; filename="data.csv"

    IjEwIiwiSm9lIFNtaXRoIiwiNzA3LTQyMi05MjIxIgo=


    Right?

    My data is encrypted & it should not be, right? Or, at least I don't want it to be.

    What am I doing wrong?

    Thanks again.

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

    Default Re: CSV file is still encoded when Filter=CSV

    Hi,

    What you're seeing is the internal structure of the email that provides the file attachment.

    It's not encryption, but it is encoded for transport via the internet. That encoding is performed as part of structuring the email and every email program does it.

    If you're seeing that instead of an attachment, then it's probably because your server's email software is not compliant with the internet standards (or, maybe it's your email client).

    FormMail has two configs for working around faulty email software:
    • HEAD_CRLF
    • BODY_LF
    Check the doco for these and try the different settings to see if you can get the attachment to work.

    If you're still stuck, please subscribe for support and I'll sort it out for you.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  5. #5
    Join Date
    Feb 2009
    Posts
    31

    Default Re: CSV file is still encoded when Filter=CSV

    Perfect.

    Thank you!!!!

  6. #6
    Join Date
    Feb 2009
    Posts
    31

    Default Re: CSV file is still encoded when Filter=CSV

    Yay!!! That did it. Thanks again!

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

    Default Re: CSV file is still encoded when Filter=CSV

    Excellent!
    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. Attaching CSV file
    By eu4ic in forum FormMail Subscription Support
    Replies: 6
    Last Post: 01-Jun-2005, 11:58 PM
  2. Creating CSV files (databases)
    By russellr in forum HOWTO Guides and Tips
    Replies: 0
    Last Post: 13-Aug-2004, 11:45 PM
  3. to save in csv.
    By nexile in forum FormMail Subscription Support
    Replies: 4
    Last Post: 13-Aug-2004, 11:32 PM
  4. CSV Output
    By eu4ic in forum FormMail Subscription Support
    Replies: 14
    Last Post: 13-May-2004, 09:51 PM
  5. filter name
    By crabtree in forum FormMailEncoder/Decoder
    Replies: 1
    Last Post: 08-May-2004, 12:38 AM

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