SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict dtracker's Avatar
    Join Date
    Feb 2002
    Location
    Montreal, Canada
    Posts
    284
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can't attach files!

    Hi guyz,

    Can you please tell me why does my form doesn't emails me the browsed files? Here is the form:
    http://www.ferlama.com/order/

    Here is the code:

    <cfmail
    from="order@ferlama.com"
    to="order@ferlama.com"
    subject="sales"
    server="63.119.175.29">

    #form.yourname#
    #form.street#
    #form.zip#
    #form.city#
    #form.state#
    #form.country#
    #form.area#
    #form.number#
    #form.email#
    #form.ship#
    #form.browse#
    #form.info#
    #form.dimen#
    #form.boatsize#




    </cfmail>
    <cflocation url="http://www.ferlama.com/web/">
    Peace - Paz - Paix

  2. #2
    SitePoint Zealot easyrew's Avatar
    Join Date
    Nov 2001
    Location
    Milton Keynes, UK
    Posts
    186
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You will need to do a bit more work than that

    When you select a file and submit the form, the data is sent to the server as a big blob. You need to process the blob at the server end and save it to your server (check out <CFFILE ...>, then you can attach it to the email (using <CFMAILPARAM ...>).

    The examples in the CF documentation should give you all you need. Let us know if you need a hand...

    Rich
    If a man stands alone in the forest
    and there's no woman around to hear him,
    is he still wrong?
    w: www.EasyRew.com

  3. #3
    SitePoint Addict dtracker's Avatar
    Join Date
    Feb 2002
    Location
    Montreal, Canada
    Posts
    284
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you for your help. But the problems is that I don't know how to code in CF, I understand a bit how it works but I am unable to script. So where do I need to put thoses tags?
    Peace - Paz - Paix

  4. #4
    SitePoint Enthusiast oiboi's Avatar
    Join Date
    Jan 2002
    Location
    Houston
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Your CFMAILPARAM tag goes in the CFMAIL tag.

    <cfmail
    from="order@ferlama.com"
    to="order@ferlama.com"
    subject="sales"
    server="63.119.175.29">

    #form.yourname#
    ...
    #form.boatsize#

    <CFMAILPARAM INFO HERE>
    </cfmail>

    I do believe you also need this:

    Your html form tag needs this
    ENCTYPE="multipart/form-data"

    So it would look like this:

    <FORM ACTION="upload_action.cfm" METHOD="post" ENCTYPE="multipart/form-data">

    {form code here}

    </form>

    I dont remember off hand how to use the CFMAILPARAM tag... but the cold fusion documentation is more than adequate.

    Hope that helps.
    Adrian Gonzales
    http://www.clearspanmedia.com


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
  •