0

I have a site running WordPress 4.3.1 and a hosts mail() limit of 14 mails per 5 minutes (Which is 2 mails per minute) and cron limit of min 5 minutes, and I am running everyone can register, Profile Builder with mail confirmation and WP Mail Bank to set wp_mail() to php's mail() function. What i need is to limit my mail queue and stimm use mail().

Thanks in forwards!!

P.S. I also have iThemes security with file change notifications.

2
  • Why dont you use SMTP to send the email instead of relying on PHP mail()? You can try using wordpress.org/plugins/easy-wp-smtp
    – iSaumya
    Oct 23 '15 at 16:14
  • 1
    Your question is a bit hard to understand. If you're running into a limit on emails you can send from your host, whynot use a service like Mandrill instead? Oct 23 '15 at 16:15
0

You can write your own wp_mail function that will override the core one and in your own function you can enqueque emails, and then dequeue them and send them with wp-crom events. Managing the queue is not trivial but should be doable.

But the easier path is to use an external service that has an API like mailchimp.

3
  • I will try Mandrill, like @Evan suggested, and ill get back to you. Thanks! EDIT: The problem is i have a FREE host, which wont give me DNS settings. And if you can help, how do i code the wp-mail function??
    – ArsenArsen
    Oct 23 '15 at 18:37
  • AFAIK You don't need a DNS setting to use mailchimp API. mandrill is a service by them but it probably offers more then what you need. As for code, it is not trivial and it has too many details for me to think about, and I don't like to provide code for solutions that I don't believe in, as it is probably long term better to either move to a better hosting or use external email sender instead of messing around with something which is close to being core functionality. Oct 23 '15 at 19:01
  • Ok. Thanks, and i found a plugin, and i need to do some little tweaking. Thanks to you and @EvanMattson
    – ArsenArsen
    Oct 23 '15 at 19:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.