Re: Looking for "SMTP injection" sample code

From: Date: Thu, 07 Dec 2000 04:19:32 +0000
Subject: Re: Looking for "SMTP injection" sample code
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-29052@lists.php.net to get a copy of this message
Manuel Lemos has a class that does this on his site. There are also other packages available. Check the code archives. It mostly consists of opening a socket to port 25, and then reading/writing the expected values prescribed by SMTP spec. So, if you were really bored, you could read the SMTP spec and DIY... ----- Original Message ----- From: Jonathan Wilson <wilson@claborn.net> Newsgroups: php.general Sent: Wednesday, December 06, 2000 2:20 PM Subject: [PHP] Looking for "SMTP injection" sample code > Howdy, > > My company has written an php page that gets email addresses from SQL DB, then sends the mails out via the built-in sendmail commands. > > This is for subscriber based emails, not spam. > > Formerly we've been using sendmail, but we recently switched to postfix for various reasons, including virtual domain support. > > However, Postfix runs twice as slow with the mail() function as sendmail does, that's very unacceptable. > > Poeple on the Postfix mailing list said that this is the result of using the sendmail command line, which is very un-optimized. they said we need to use SMTP port injection for fast mailing. > > Unfortunately we are very new to php, and don't know how to do this. > > Does anyone have some sample code showing this method of sending mail via smtp?, that you'd be willing to share? > > This is on a Red Hat Linux system, by the way. > > Thanks, > > JW > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#29052) next »