WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
Contact Form with weekly limit (4 posts)

  1. mtbmtb
    Member
    Posted 3 years ago #

    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

  2. webjunk
    Member
    Posted 3 years ago #

    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.

  3. mtbmtb
    Member
    Posted 3 years ago #

    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

  4. webjunk
    Member
    Posted 3 years ago #

    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????

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic