Page 1 of 1

about using mail function

Posted: Fri Aug 24, 2007 7:06 pm
by mekya
hi,
As you know, php built-in mail function take mail addresses separated by comma as TO parameter,

my question is: what is the performance difference in php or in view of postfix when sending mail to a list of mail adresses individually in a for loop or concating all mail adresses separated by comma and then sending in a one mail() function call?

Posted: Fri Aug 24, 2007 8:30 pm
by s.dot
I've never used a comma to send to multiple addresses.

I do know that sending emails in a loop is abusing what *could* be one connection to the mail server. d11wtq's Swift Mailer at http://www.swiftmailer.org is a fantastic library for addressing issues such as this.

Posted: Sat Aug 25, 2007 3:10 am
by mekya
thank you...