>I am wrting a php page that will write out an email message to the email
address retrieved from Db. If i want to have CC function togethere with
mailTo, how could I do that?
Use the optional fourth argument to send Cc: header with the mail.
$headers = "Cc: [EMAIL PROTECTED]\r\n";
$headers .= "Cc: [EMAIL PROTECTED]\r\n";
mail($to, $subject,$body, $headers);
WARNING:
Using builtin PHP email in rapid-fire high-volume (like, 20 or 50 messages
in a row) is highly error-prone. You're forking sendmail on each mail() and
that's a big performance hit.
Upgrade to Manuel Lemos email class, or to some other user-contributed
package that spews email directly to port 25, thereby bypassing the sendmail
fork limitations.
WARNING:
Even spewing directly to port 25 is not designed for truly high-volume
email. Custom email software such as majordomo, ezmlm, SmartList, et al
"pre-sort" outgoing email by its destination -- IE, all the "yahoo.com"
emails get sent together. And they, errr..., do other magical things I
don't know about, but that you're not gonna duplicate in an afternoon of PHP
scripting.
If you are sending the same email to a bazillion people, use custom email
software and integrate it with PHP.
WARNING:
Even majordomo et al aren't designed to handle spam-quantity email.
If you're contemplating spamming, don't.
Don't miss the Zend Web Store's Grand Opening on January 23, 2001!
http://www.zend.com
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]