WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Contact Form 7] Contact Form with weekly limit

[Plugin: Contact Form 7] Contact Form with weekly limit

  • mtbmtb
    Member

    @mtbmtb

    Hi,

    I wanted to know if it is possible to have multiple contact forms on my blog that basically send questions to different email accounts, but also have a limit of say 5 emails per week to each account.
    After the limit of 5 has been sent for that week I can display a message stating the weekly limit has been reached.

    Any help with how to do so would be much appreciated.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • webjunk
    Participant

    @webjunk

    You change the email account in the TO field for each Contact form..

    FOr the limit: You would have to write a bit of code to save how many emails are sent for each contact form; set a time limit (seven days) for each and then more code to change the message instead of the contact form based on the saved record.
    Waste of my time to write as why would anyone want to limit to five emails. Defeats the purpose of a contact form. Too much to be posting here anyway. But if you know PHP it can be done.

    mtbmtb
    Member

    @mtbmtb

    Hi,

    Thanks for your reply.

    For the limit as I have little knowledge of PHP at the moment, could you or someone else please point me in the right direction in terms of the code.

    The reason for the limit is it will be used for a Q&A section, where the person answering the questions will be limited to 3 questions every week.
    Thanks

    webjunk
    Participant

    @webjunk

    Just way too much to write and debug. Better trying on a PHP forum somewhere else. Its not like writing a few lines of a batch file. And besides having to deal with PHP you will need to know database access.

    As an aside, can anyone imagine if people here were limited to 3 questions a week????

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Contact Form 7] Contact Form with weekly limit’ is closed to new replies.