How to get rid of the one minute delay

Hi, when composing an email from the member account, please see picture I included. May someone please tell me how to remove the one minute delay between sending emails? Thank you!

problem.jpg · 73.7K · 234 views
Quote · 4 Jul 2011

/inc/classes      BxDolMailBox.php

find and edit it.

68~69

// can write another message (in minuts)!
        var $iWaitMinutes  = 1;

Quote · 4 Jul 2011

There's a reason for the delay. If you remove it, you may expose your members to some email abuse from within

http://towtalk.net ... Hosted by Zarconia.net!
Quote · 4 Jul 2011

I recommend you not to remove that. That will make spammers to send huge volume of emails.

----
Quote · 5 Jul 2011

Thank you very much for your answers and opinions! I'll follow the ones that suggest not to taking it off finaly :)

 

Thanks to all of you!

Quote · 8 Jul 2011

Thanks for this!

Quote · 30 Sep 2012

I wish to remove the one minute delay from my email sending also. My membership is all people that I have personally approved to be on the site and can regulate the spamming issue myself. I would rather do this than inconvience my members. And yes I get a ton of complaints.

Please Help

Mel

Quote · 14 Oct 2012

Well do it. The instructions are in this thread.

Quote · 14 Oct 2012

Could I change this into seconds?

// can write another message (in minuts)!

        var $iWaitMinutes  = 1;

let's say 30 seconds

Diddy is not greedy and has time. Dolphin is cool and its not just mine :-)
Quote · 9 Apr 2013

Yes, use fractions.  I used 0.5 and then tested it and it reported I had to wait 0.5 minutes before sending another.  I did not follow up to see if it was 0.5 minutes but I assumed it was.  So test and see if you can send another message after 30 seconds.

Geeks, making the world a better place
Quote · 9 Apr 2013

 

Yes, use fractions.  I used 0.5 and then tested it and it reported I had to wait 0.5 minutes before sending another.  I did not follow up to see if it was 0.5 minutes but I assumed it was.  So test and see if you can send another message after 30 seconds.

 The time of 30 seconds and .5 minutes may be the same, but 30 seconds looks more professional.

Can we do:

// can write another message (in seconds)!
        var $iWaitSeconds  = 30;

Quote · 9 Apr 2013

Well, that is just setting the value of the variable, so yes you can.  Then you can go to where the variable is used and adjust the code there so it is in seconds and not 30 minutes.  Search for iWaitMinutes (without the $) and then work to make it work as you want.  Personally coming from a maths background, the 0.5 is perfectly fine to me.Smile

Oh, sorry, you wanted to create a new variable,  Yes, you can do that as well and then change the current code to handles that variable.

Geeks, making the world a better place
Quote · 9 Apr 2013

I changed this some time ago too and can remember to switch to seconds it is neccessary to change this line as well

date_add(`Date`, INTERVAL {$this -> iWaitMinutes} MINUTE) > Now()

into

date_add(`Date`, INTERVAL {$this -> iWaitMinutes} SECOND) > Now()

then use 30 as a value for variable $iWaitMinutes. Fractions of minutes will not work.

Also don't forget to change language key _You have to wait for PERIOD minutes before you can write another message! in admin panel from minutes to seconds

Check my GeoDistance, Watermark, TorBlock and Android Push Notifications mods | http://goo.gl/H3Vp81
Quote · 9 Apr 2013

0.5 seems to work for me; I was counting 100x and so on and not using a stopwatch but yes, after 30 seconds or so I could send a new email but not before.

Geeks, making the world a better place
Quote · 9 Apr 2013

What would be nice here is a countdown time; you can send an email in xx minutes/seconds and the xx counts down letting the user know when they can click to send a new email.

The problem with this feature is that while it can help to prevent spam, it annoys the heck out of members and they complain about it all the time.  You have to weight the risk of a spammer sending out emails with the user experience using your site.  If there are enough things "in the way" of the user experience, they will leave.

The question I have is, "What is the risk of a bot hitting the email system and sending out spam email to all my members at once?"

Geeks, making the world a better place
Quote · 9 Apr 2013

fractions of minutes not work here. I just tried because i was curious. Sometimes it's 20 seconds, sometimes 50 seconds until i can send again. So i think there is some rounding going on. I don't know. Correct way is to use SECOND then it works really like expected.

Check my GeoDistance, Watermark, TorBlock and Android Push Notifications mods | http://goo.gl/H3Vp81
Quote · 9 Apr 2013

DateTime::add
date_add

(PHP 5 >= 5.3.0)

DateTime::add -- date_add — Adds an amount of days, months, years, hours, minutes and seconds to a DateTime object

Object oriented style
public DateTime DateTime::add ( DateInterval $interval )

Procedural style
DateTime date_add ( DateTime $object , DateInterval $interval )

Adds the specified DateInterval object to the specified DateTime object.

 

The DateInterval class

(PHP 5 >= 5.3.0)
Introduction

Represents a date interval.

A date interval stores either a fixed amount of time (in years, months, days, hours etc) or a relative time string in the format that DateTime's constructor supports.
Class synopsis
DateInterval {
/* Properties */
public integer $y ;
public integer $m ;
public integer $d ;
public integer $h ;
public integer $i ;
public integer $s ;
public integer $invert ;
public mixed $days ;
/* Methods */
public __construct ( string $interval_spec )
public static DateInterval createFromDateString ( string $time )
public string format ( string $format )
}

 

Just trying to gain an understanding here.

Also:

DateInterval::format

(PHP 5 >= 5.3.0)

DateInterval::format — Formats the interval

public string DateInterval::format ( string $format )

Geeks, making the world a better place
Quote · 9 Apr 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.