Thread subject: muscapaul's PHP-Fusion website :: must have function, to newsletter

Posted by scofield on 14-03-2009 22:17
#1

Hi
i have a function that i really think is needed in the newsletter.

i am on servage. and know that servage have a function that not allow to send out more than 100 mails every 30 min.
so the way this newsletter is not. i cant sendt out newsletters becores i have more than 800 subscripe users.

how can i fix this. is there a function in the newsletter, where i can fix this ?

what dows this code do ?
Code
if ($rows == 1 || $i == 99) {
               if (!sendemail($settings['siteusername'],$settings['siteemail'],$settings['siteusername'],$settings['siteemail'],$subject,$content,$_POST['format'],"", $bcc_list)) {
                  $error = $locale['NL418'];
               }
            $bcc_list = "";
            }
         if ($i != 99) { $i++; } else { $i = 1; }
         $rows--;
         }
      }




if i change the 99 to ect. 20, will this help og will it only send out 20 mails ?

i i cahnges it to 20, how often, will it send out mails ?

Posted by muscapaul on 16-03-2009 20:28
#2

It will send out to 99 subscribers and the site's email address. I think this should count as one mail. With more than 800 subscribers the present code should be able to send the message to all subscribers in 9 emails. If servage counts the inividual addressees as separate emails, then there is a problem I cannot tell you how to solve.
If you set it to 20, then there will be more than 40 emails sent with the newsletter.

Posted by scofield on 17-03-2009 00:34
#3

ok
becores on servage it only works is i set it to MAX 20

Posted by muscapaul on 17-03-2009 00:43
#4

Fom: https://www.serva...iki/Limits:
Email Limits

There's a limit for the amount of emails which can be sent via PHP Mail. The limit is set to a 100 emails per hour. There's no limit on the amount of emails sent via SMTP, but when you're using SMTP, the email can only have up to 30 receipients.

Perhaps they have ven lowered the 30 to 20...


Notice: Undefined index: post_edituser in /home/muscapal/public_html/print.php on line 114
Edited by muscapaul on 17-03-2009 00:44

Posted by scofield on 17-03-2009 20:48
#5

Yep. but i am not using the SMTP in fusion. i am using the build in php mail.