Viewing 4 replies - 1 through 4 (of 4 total)
  • I have never used that feature. As far as I can tell, what happens is that email address the web surfer puts into your form gets checked against each of the blocked domains. If the domain in the email address matches one of the domains in your list of blocked domains then it will not send an email and I think it will instead put a message on the screen to the web surfer telling him the email is not allowed.

    The code looks to me like it should work. The syntax for the blocked domain list is just:
    gmail.com,whatever.com,somethingelse.org

    or something like that. Domain names with commas between and no spaces. If you just had one then no commas of course.

    Thread Starter itmonitor

    (@itmonitor)

    Hi dtynan,

    many thanks. I checked the blocked email list and corrected its syntax. I confirm that the Email Block feature is working now.

    I need to make one final tweak: please, where do I change the text of the error message “The email that you provided is not allowed. Please provide another one.” ?

    Looks like that message is hardcoded into email-before-download.php at about line 420. You’re stuck with it unless you want to modify that php file (which is no big deal since new versions of email-before-download.php rarely appear, so not much chance your change will get overwritten on a plugin update).

    Thread Starter itmonitor

    (@itmonitor)

    many thanks. Issue solved. ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Blocked domains syntax’ is closed to new replies.