Making the usage of 3rd party services effective

Technical discussion for developers and service providers

Making the usage of 3rd party services effective

Postby theb3s7 » 6:01pm, Fri 16 Dec, 2011

Hi!

I started using phplist along with Amazon SES via SMTP and I found an annoyance:
After bumping up my quotas & limits I realized that I can't use them to their full potential because sending one email takes a fairly good amount of time. Since all emails are sent synchronously, I cant send several emails per second, although the paid service does allow me.

With that issue in mind, I stared to fork some bits of code using pcntl_fork() but to no avail..

Any suggestions on how I could parallelize the sending process via smtp?

Thank you!
Alex

LE:
I changed
Code: Select all
case "smtp":
    $result = $this->SmtpSend($header, $body);
    break;


to

Code: Select all
case "smtp":
    $pid = pcntl_fork();
    if (!$pid) {
        $this->SmtpSend($header, $body);
        exit(0);
    } else {
        $result = true;
    }
    break;


in admin/phpmailer/class.phpmailer.php but the mysql server keeps going away..
theb3s7
phpList newbie
 
Posts: 1
Joined: 5:52pm, Fri 16 Dec, 2011

Return to Developers Space

Who is online

Users browsing this forum: No registered users and 1 guest