+ Reply to Thread
Results 1 to 7 of 7

Thread: Attaching CSV file

  1. #1
    Join Date
    May 2004
    Posts
    25

    Question Attaching CSV file

    Hi Russell,

    Is it possible, when you create a csv file from the contents of a submitted form, to attach that csv file to the e-mail sent to the address defined in your script and then delete the csv file.

    ie. I only want the data form 1 form at a time to be in the csv file and for the file to be attached to the e-mail that I receive.

    Please can you let me know if this is possible.

    Cheers

    Symon.

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

    Default Re: Attaching CSV file

    Hi Symon,

    No there's no way to do this in the current version.

    The best way is to create an HTML template that looks like a CSV file and use that to send you the email.

    Depending on your email program, you could save that "HTML" version of the data or just copy-and-paste.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  3. #3
    Join Date
    May 2004
    Posts
    25

    Talking Re: Attaching CSV file

    Hi Russell,


    thanks for that, but unfortunately the HTML e-mail or copy & paste is not anoption as I need to be able to use the csv file in a VB application once it has been downloaded.

    thanks anyway.

    Symon

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

    Default Re: Attaching CSV file

    Hi Symon,

    If you can use a workaround for a while, I've put this request into our To Do list for FormMail.

    It won't happen for a number of weeks, but it will happen.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  5. #5
    Join Date
    May 2004
    Posts
    25

    Talking Re: Attaching CSV file

    Thanks Russell, Very much appreciated.

  6. #6
    Join Date
    Jun 2005
    Posts
    1

    Default Re: Attaching CSV file

    Hello Russell,

    First, I want to thank you for creating and *supporting* a great script!

    Second, I was wondering if the change in this thread (mentioned back in June 2004) was ever implemented into formmail? If so, are there instructions on how to set it up?

    Specifically, I need to use the csv in a script (similar to eu4ic's request). It would be best if the form could attach and send a new csv file via e-mail each time, but if not at least overwrite the data in the csv file rather than appending it.

    Please let me know.

    Thanks so much,

    Deja


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

    Default Re: Attaching CSV file

    Hi,

    Yes!

    You use a PlainTemplate and attach it by using the new "null" filter.

    Once you have the PlainTemplate working (check out the how-to guides), you can attach it instead of have it in the body of the email with the following hidden fields:

    Code:
    <input type="hidden" name="filter" value="null" />
    <input type="hidden" name="filter_options" value="Attach=data.csv" />
    When you upgrade you may need to manually re-create the "null" filter because the Upgrade Wizard will simply replace the new $FILTERS with the old $FILTERS:
    PHP Code:
    $FILTERS = array("encode"=>"$REAL_DOCUMENT_ROOT/cgi-bin/fmencoder -kpubkey.txt",
                    
    "null"=>"null"); 
    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. what does a CSV file do?
    By gwbosma in forum FormMail Subscription Support
    Replies: 1
    Last Post: 20-Nov-2004, 09:20 PM
  2. csv file problems
    By Badnet in forum FormMail Subscription Support
    Replies: 2
    Last Post: 12-Nov-2004, 03:06 AM
  3. Save to CSV file not working, Directory path
    By mkw in forum FormMail Subscription Support
    Replies: 3
    Last Post: 02-Oct-2004, 12:28 AM
  4. Downloading CSV file in Access
    By jgold723 in forum FormMail Subscription Support
    Replies: 2
    Last Post: 30-Aug-2004, 11:35 AM
  5. Attaching a file to posting
    By Calvinsdad in forum FormMail Subscription Support
    Replies: 1
    Last Post: 21-Feb-2004, 03:18 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