PHP Classes

Sending BULK

Recommend this page to a friend!

      SMTP E-mail sending class  >  All threads  >  Sending BULK  >  (Un) Subscribe thread alerts  
Subject:Sending BULK
Summary:Sending multiple emails
Messages:2
Author:Mauricio Bolognese
Date:2008-11-01 14:10:25
Update:2008-11-01 18:13:25
 

  1. Sending BULK   Reply   Report abuse  
Picture of Mauricio Bolognese Mauricio Bolognese - 2008-11-01 14:10:33
I altered the test_smtp.php to read a txt file containg a list of emails and send one by one. But the result I get is:

Resolving SMTP server domain "localhost"...
Connecting to host address "127.0.0.1" port 25...
Connected to SMTP server "localhost".
S 220-sv2.hmnoc.net ESMTP Exim 4.69 #1 Sat, 01 Nov 2008 08:55:48 -0500
S 220-We do not authorize the use of this system to transport unsolicited,
S 220 and/or bulk e-mail.
C EHLO localhost
S 250-sv2.hmnoc.net Hello localhost [127.0.0.1]
S 250-SIZE 52428800
S 250-PIPELINING
S 250-AUTH PLAIN LOGIN
S 250-STARTTLS
S 250 HELP
C AUTH PLAIN Y29udGF0b0B2aWJyYW50aW1vdmVpcy5jb20uYnIAY29udGF0b0B2aWJyYW50aW1vdmVpcy5jb20uYnIAZW1wcmVzYQ==
S 235 Authentication succeeded
C MAIL FROM:<xxx@xxx.com.br>
C RCPT TO:<xxx@gmail.com>
C DATA
S 250 OK
S 501 <xxx@gmail.com: '>' missing at end of address
Disconnected.
Cound not send the message to xxx@gmail.com . Error: 501 ' missing at end of address xxx@gmail.com


How can I make it send bulk?

  2. Re: Sending BULK   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-11-01 18:13:25 - In reply to message 1 from Mauricio Bolognese
You should use the MIME message class with this class instead to generate well formed messages using the SMTP class for delivery:

phpclasses.org/mimemessage