Welcome to Geeklog Wednesday, August 21 2019 @ 01:53 am EDT

Geeklog Forums

Let sleep the mailer


Status: offline

anigwei

Forum User
Newbie
Registered: 01/06/03
Posts: 7
Location:Barcelona, Catalunya [Spain]
One feature of Geeklog is /admin/mail.php, for sending a mail to every user that we have in our database, and the mails are sent at the same time... A great idea could be to add a little timeout between sends (for example, 2 seconds). Doing the sending without timeout, we can either make suffer our MTA or even get our IP blacklisted on some ISP that realizes that we have sent lots of mails thinking that it's spam. I've done a mailing now and I left my box without resources (postfix eaten all) and at the end, the last mails that should go to @hotmail.com was refused. I've add one line on the file /admin/mail.php, I think that would be okay. [Moderators, check it please!]. Line 187, near... if (!mail($til, stripslashes ($vars['subject']), stripslashes ($vars['message']), $headers)) { $failures[] .= $til; } else { $successes[] = $til; } //We add this: sleep(2); } Thanks!

All times are EDT. The time is now 01:53 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content