mail and attachments

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default mail and attachments

    I have a problem with trying to send mail with the <cfmail> tag out to a list
    of emails. I upload attachments onto the server (users choose to upload files,
    I upload to server in order to load). I have the <cfmail tag > <cfmailparam
    name='Reply-To' value='#application.WebmasterEmail#'> <cfmailparam
    file='filepath </cfmail> after this I need delete the file since we are not
    going to store it in the application, I just need the attachment while the
    person is sending the mail out. So, I have the delete file after the mail tag.
    <cffile action='DELETE' file='filepath> I have a problem where my mail is not
    going out because the files/attachments are deleted from server before the mail
    is sent out. Can someone tell me please what is the order in which cold fusion
    processes these two tags. I was thinking that since the mail tag is coded
    first it would process it and then just go ahead to delete the file. But, it
    seems to work backwards, does any one know why.

    Sirena Guest

  2. Similar Questions and Discussions

    1. Mail::Sender, attachments and html together
      Hi! I'm developing a program that send mails with the content in html and also should send attachments. I am using Mail::Sender and I can do both...
    2. using mail() for attachments
      I've spent weeks trying to write a function that is simple to use for sending emails with attachments, but I my programming skills are not that...
    3. the script hangs up when i try to send mail with attachments using MAIL::Sender...???
      As said in the topic... when i try to send an e-mail message using Mail::Sender the script hangs up before execution of $sender ->...
    4. Panther, Mail and attachments?
      Does anyone out there playing with Panther know if it has fixed the oddities with attachments from Mail. What I'm most concerned about is whether...
    5. how to add attachments when sending mail using stored procedure
      From: "Pasha Ahmed Ali" <ahmed_ali_pasha@hotmail.com> Subject: Adding Attachments ? Date: Thu, 26 Jun 2003 23:21:34 -0700 Newsgroups:...
  3. #2

    Default Re: mail and attachments

    When the mail is spooled, only a path to attachment files is stored in the
    spool file. If you want immediate delivery, use the SpoolEnable="No"
    attribute to cfmail and the tag will not return until the mail (and the
    attachment) is delivered. There is also a checkbox in the admin for this on
    a server wide basis.

    --
    Tom Jordahl
    Macromedia Server Development


    Tom Jordahl Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139