Re: mailTo

From: Date: Mon, 22 Jan 2001 22:02:36 +0000
Subject: Re: mailTo
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-36090@lists.php.net to get a copy of this message
>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: duplicate@yoursite.com\r\n"; $headers .= "Cc: triplicates@irs.gov\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

« previous php.general (#36090) next »