Forum Replies Created

Viewing 15 replies - 676 through 690 (of 777 total)
  • There is also a “Repy-To” header which controls what happens when you click Reply.

    That email is the “notification” email (that goes to the wordpress admin normally). There is a different email that goes to the user who filled in the form (it goes to his email address) — that email is probably not getting delivered. This has been covered many, many times in the support messages on here. I just covered in detail a couple of days ago. Please read back through some of the support messages (you need to change the From: or installed SMTP plugin)

    In the EBD settings #5 Inline Link Target

    dtynan

    (@dtynan)

    EBD sends 2 emails.

    One email is the “notification email” that you configure in CF7. That should go to the wordpress admin (you). That one lets you know that a user has filled out the EBD form & it tells you what they downloaded. As long as your admin email address can get email from your wordpress installation then you will get this email. This one usually works just fine.

    The other email goes to the user (the website visitor who filled out the form). That one is sent to whatever email address that the user entered on the form. This email is sent by EBD (not CF7). This is the email that will have the attachments that the user selected on your form. This is the email that people usually have trouble with. In your case, this is the email that is not getting to the user. It is probably being rejected by the user’s email provider (gmail, yahoo, whatever). This often happens because the “From:” of that email doesn’t match the system that is sending it (the system your wordpress is running on at your hosting provider) and you have no configured any of the things that help prove you are not a spammer (like SPF, DKIM, etc).

    If you want, you can try this plugin in order to change the From: so that it matches the same “From:” as on your notification email that you are getting (this is what I do) – https://wordpress.org/plugins/custom-sender-for-email-before-download/

    Or, you can use an SMTP plugin like the one from Jason Hendriks (which is what many people on this support forum use who encountered the same problem you are):
    https://wordpress.org/plugins/postman-smtp/

    Note that the custom-sender-for-email-before-download plugin will erase its setting every time you change EBD settings .. meaning you will have to put the From: back in there every time, which is annoying.

    So far, everyone who has used Postman SMTP has solved their problems. Plus, the author checks these forums, so he is very proactive. If I were in your shoes, I would go with it.

    dtynan

    (@dtynan)

    I’m not seeing the problem on your page so I assume you fixed it already.

    As you probably figured out you can fix it a couple of different ways … either don’t have an image associated with those classnames or, if you do, then you have to change it to inline or inline-block or something, I don’t really remember exactly but it’s something like that — can be fixed by just adding a css rule.

    dtynan

    (@dtynan)

    I don’t know the cause exactly, but it sounds like your IIS webserver doesn’t recognize the pdf mime type maybe? Or, rather, it sounds like IIS doesn’t realize that it’s a PDF file being spit out from PHP & it doesn’t send the appropriate headers? Just guessing there .. I’ve never liked IIS and it’s goofy with PHP anyway, but if your stuck with that in production then I guess you’ll have to search around on the web.

    This is probably not a good longterm solution, but you might try turning on Force Download for that particular download (which is either a setting for that download in Download Monitor) or it can be an extra term in your shortcode – see the FAQ on the EBD plugin page). Turning on (or maybe it’s turning off .. I can’t recall at the moment) will cause the program to do an HTTP Location: command to the browser & give it the URL for the pdf file, rather than reading in the PDF file via PHP and spitting it out to the browser. If it works that way, then you know it has to do with PHP reading in & sending the PDF file and you can search the web for that .. otherwise it sounds like IIS mime types missing the PDF type (which sounds nuts, but Microsoft yaknow).

    dtynan

    (@dtynan)

    Putting it inside the paragraph tags didn’t fix it? Try changing them to div and /div and see if that works.

    If you want to debug it better, you might try using a gmail address for the email to go to, then log in to gmail using your webbrowser (chrome) and view the email. Then, open the devtools. Most likely you’ll see an html error right where it substitutes in the text. In my case (and a couple of other people if you go back through a bunch of previous support posts on here) the first link wasn’t a link because there was an unclosed paragraph tag right before the substituted text … that was then getting closed by a closing paragraph tag inside the substituted text & it borked up the first link but then the rest worked. I seem to recall someone else fixing it by doing the extra paragraph thing as I mentioned, but doing div’s instead. Try that. Do it in the 2 str_replace lines just as I said before and try again.

    dtynan

    (@dtynan)

    I think what you’re doing is trying to change the file URL in the Download Monitor plugin for a file that you uploaded. I think you are misunderstanding how that works. When you upload a file in Download Monitor, the file gets stored in the filesystem of your server and there is a URL that will download that file if you put the URL in a browser. THAT is the URL in that field that you are changing. So, you’re basically putting a URL to one of your webpages into the field that Download Monitor thinks it should use to allow a visitor to download a file. Thus, that’s not what that URL field is for. It doesn’t work like that.

    I suggest you not use EBD (and Download Monitor) for what you are trying to do. If you just want to get a user’s email address & name & send them to another page you should use something else. Some sort of form plugin perhaps or other plugins that get a user’s email address perhaps. This setup is specifically for downloading files, not going to webpages.

    dtynan

    (@dtynan)

    I still think the issue is the notification email vs. the email as I said above, but in case that’s not it, just a couple of other thoughts:

    i don’t think this should matter, but you might want to make sure Masking is turned off in the EBD settings.

    also, turn off unrelated plugins & see if that makes a difference.

    dtynan

    (@dtynan)

    The most likely reason is that your new hosting provider has different default options in php.ini regarding how errors are displayed (or not displayed). Most likely they have it set to do errors to the screen. Some unimportant error occurs during the ajax transaction when EBD is submitted & that extra error text gets shoved into the ajax response & messes it up. That’s just a guess though, since you didn’t provide any URL or anything. But, that’s where I’d look first.

    dtynan

    (@dtynan)

    My memory is pretty fuzzy on this, but I believe I saw this problem at one point. I think I fixed it by putting paragraph tags around the part where EBD does a str_replace and puts its code in.

    Around line 255 and 256 of email-before-download.php, you should see a couple of str_replace commands. One is for the ebd tag and the other is for the ebd_left tag (those are the two tags you use for the checkboxes when you’re doing multiple downloads).

    Change those two lines to put an opening and closing html paragraph around them like this (this is the ebd_left tag, the other is basically the same but ebd so make the same change for it of course):

    $contact_form = str_replace("<p><ebd_left /></p>", $chekboxesL, $contact_form);

    See if that works.

    dtynan

    (@dtynan)

    PHP is set to display errors to the screen on your new hosting provider. You need to make it go to an error log file instead by changing php.ini or whatever the preferred method is for that hosting setup.

    That will get rid of the error text getting mixed in with the ajax call, which is what is breaking you right now (the error text itself is coming from an error that doesn’t matter I think).

    dtynan

    (@dtynan)

    I went back and looked at my changes and realized they were for something else and not related to the problem you’re seeing.

    I looked at the email that your system sent out to me when I tested your form. I think the problem is that that email is the Notification Email (probably). The Notification Email is not supposed to go to the website visitor (the guy who filled out the form). The Notification Email is supposed to go you (the website administrator). The Notification email is configured in Contact Form 7 in the tab where you configure the To and From and such. I’m thinking maybe you put the [your-email] code or whatever it is into the To: field by mistake. The To: should go to your normal wordpress admin email address — hard code it in there if you want.

    For EBD, if you select “Both” or “Email” in the EBD settings, then EBD will automatically send an email to the address the user typed in the form (the your-email field). You do not have to set that up, it’s automatic. That is a different email from the notification email.

    When you test, you should be using a test email address (or something that is not your admin email address). Thus, if it works, you should be getting 1 email to the wordpress admin (the notification email) that tells the admin (you) that some visitor selected some checkboxes to download files. And, there should be another email that does to the visitor (which is your test email address).

    dtynan

    (@dtynan)

    I don’t remember exactly, but I think my changes might not work if you’re using the old version of Download Monitor. If you think you might want to try my modified version, put in here what version of everything you are using (Download Monitor, EBD, Contact Form 7)

    dtynan

    (@dtynan)

    Hey the email finally showed up. There are no attachments and the file titles are listed but are not links.

    So, I think you’re encountering some of the same bugs that I encountered back when I first set up EBD. It’s been a few months since I did that. I ended up modifying the code directly to fix things. As I recall, one problem was with the email when doing multiple downloads (checkboxes). The php code in EBD doesn’t work for that scenario. Additionally, when it lists the files in the email it runs them together with a vertical bar | between the names.

    Do you know PHP? If you know PHP then you can take a look at the changes I made to my copy (diff it against the one you have). There aren’t a lot of changes, but one or two of them affect the flow of the program (in order to fix the bugs above). I made it work, but I think I made it where it won’t work in certain cases (but I can’t remember exactly).

    Anyway, if you know PHP & you know how to do a diff then gimme an email address & I’ll mail you my modified copy and you can try it & see it works for you.

Viewing 15 replies - 676 through 690 (of 777 total)