• Resolved danielanaidu

    (@danielanaidu)


    I am using Email Before Download and Download Monitor because my goal is automatically email a visitor two files when they submit a form using Contact Form 7. I have added two URLs to the Download Files/Versions portion of the Edit Download settings, but that doesn’t do the trick (it only emails the file from the first URL). How do I email two separate files in response to a single Contact Form submission? Thank you very much for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • dtynan

    (@dtynan)

    The only way to do multiple files is to make it display checkboxes (one checkbox for each file). You designate which files by using multiple download_id values in your EBD shortcode. So your shortcode might have something like download_id=”122,153,86″ or something like that. That is how you specify which files from Download Monitor. In Download Monitor itself, you do not multiple URL in the download detail page like you are doing.

    And you need to use either <ebd /> or <ebd_left /> in your CF7 form (note that there is space before the slash in those codes). ebd_left is for checkboxes to appear on the left side (which usually looks better). See the last screenshot on the screenshots page for an example if this is confusing.

    In your case, because you are only emailing attachments, it might seem like you should be able to just do multiple files like you are trying to do, but you have to realize that in most configurations, EBD is displaying the Title of the file to the user as a link they can click on the page (‘inline’) or in the email (’email’). The only time that doesn’t happen if you do email with attachments and you change the text of the email to not have any links in it. Thus, EBD sort of wants a 1-to-1 relationship between things on the screen and things you download. That’s why to do multiple files you must do checkboxes. That will mean the user can see file titles for both of the files you want to send on the screen and then he can either check or uncheck the checkbox next to each one (which will then control which ones [or both] are attached to the email that is sent). You can default the checkboxes to checked, but he can still uncheck them if he wanted to.

    That’s the only way to do it…I think .. (you could TRY not putting in the <ebd /> or <ebd_left /> codes and just putting two download id’s in the download_id=”” part of your shortcode and see if it works. I’m pretty sure it won’t, but I haven’t actually tried that, so as a quick test you could do that before you convert over to checkboxes … maybe it’ll magically attach both to the email [though I doubt it])

    Thread Starter danielanaidu

    (@danielanaidu)

    Thank you so much for your extremely detailed explanation. It worked perfectly. And just so you know, you DO have to include the ebd code for the checkboxes, otherwise no attachment comes through. I really appreciate it!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘can’t email more than one file at once’ is closed to new replies.