Hur du begränsar mail/timma i PHPList Skriv ut

  • 4

1

Det första steget är att hitta konfigurationsfilen för din phplistinstallation. Om du har installerat skriptet på din domän på en plats som http://www.mindomain.se/list/, då kommer den sökvägen vara:

/ Home / användarnamn / public_html / list / config / config.php

I FTP kan du se:

/ Public_html / list / config / config.php

2

Ladda ner denna fil till din dator, eller redigera filen med din filhanterare i cPanel. Om du laddar ner filen till din dator bör du använda ett program som Anteckningar eller WordPad när du redigerar den.

3

Leta reda på avsnittet koden i denna fil som heter "batch-bearbetning".

4

Alldeles nedanför "batch processing", kommer du att se lite kod som i detta exempel:

Kod:

# define the amount of emails you want to send per period. If 0, batch processing
# is disabled and messages are sent out as fast as possible
define("MAILQUEUE_BATCH_SIZE",0);

# define the length of one batch processing period, in seconds (3600 is an hour)
define("MAILQUEUE_BATCH_PERIOD",3600);

# to avoid overloading the server that sends your email, you can add a little delay
# between messages that will spread the load of sending
# you will need to find a good value for your own server
# value is in seconds (or you can play with the autothrottle below)
define('MAILQUEUE_THROTTLE',0);

Detta är standardinställningar. Vi kommer att ersätta dem för att begränsa utskicken till 500/timma.
Här är den nya koden:

Kod:

# define the amount of emails you want to send per period. If 0, batch processing
# is disabled and messages are sent out as fast as possible
define("MAILQUEUE_BATCH_SIZE",0);

# define the length of one batch processing period, in seconds (3600 is an hour)
define("MAILQUEUE_BATCH_PERIOD",3600);

# to avoid overloading the server that sends your email, you can add a little delay
# between messages that will spread the load of sending
# you will need to find a good value for your own server
# value is in seconds (or you can play with the autothrottle below)
define('MAILQUEUE_THROTTLE',8);

Med dessa inställningar kan PHPList att strypas 450 mail per timme. Det återstående antalet 50 mail/timma används för att vanlig e-posthantering skall fungera smårtfritt.

5

Spara filen och ladda upp den med FTP till sin ursprungliga plats. VIKTIGT: kom ihåg att ta en säkerhetskopia av den ursprungliga filen ifall du rör till saker.

Nu bör du kunna skicka e-post utan studsar och utan att överbelasta mailservern.

 


Hjälpte svaret dig?

«Tillbaka

Powered by WHMCompleteSolution