Welcome to Geeklog, Anonymous Saturday, June 15 2024 @ 05:15 pm EDT

Geeklog Forums

Let sleep the mailer

Status: offline


Forum User
Registered: 06/01/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 05:15 pm.

  • 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