[clue-tech] Improving performance of php sending mail via exim on CentOS5
ErikZ
erik.zolan at gmail.com
Thu Mar 4 21:18:55 MST 2010
The emails have some unique strings that he's pulling out of the database.
What I was wondering is if it's just the name, or if it's several
things.Maybe it would be better to grab the info out of a flat file
and build the emails from there?
On Thu, Mar 4, 2010 at 8:55 PM, Dan Harris <dan at drivefaster.net> wrote:
> On 3/3/10 4:56 PM, Greg Knaddison wrote:
>> Hello Cluebies,
>>
>> I've got a problem that spans PHP, Exim, and maybe Linux just enough
>> that this is the best place for figuring it out. It's a discussion
>> site sending e-mail notifications to users. It needs to generate
>> custom messages for each user so it is calling php's mail() function
>> once per recipient. There are 7,000 people who get notified with each
>> new post to the site.
>>
> Are you calling mail() 7,000 times? If so, can you instead add all the
> recipients as bcc and call mail() once? It seems that you're incurring
> a lot more overhead in the php process. Letting Exim handle the mass
> distribution should be a lot more resource-efficient.
>
> -Dan
> _______________________________________________
> clue-tech mailing list
> clue-tech at cluedenver.org
> http://cluedenver.org/mailman/listinfo/clue-tech
>
More information about the clue-tech
mailing list