My connection is a multi:
Code: Select all
$connections_gmail = array();
$connections_def = array();
$conn_g0 =& new Swift_Connection_SMTP("smtpauth.fairpoint.net");
$conn_g0->setUsername("kanon11@fairpoint.net");
$conn_g0->setPassword("hotmouse");
$connections_gmail[] =& $conn_g0;
$conn_g =& new Swift_Connection_SMTP("smtp.gmail.com", SWIFT_SMTP_PORT_SECURE, SWIFT_SMTP_ENC_TLS);
$conn_g->setUsername("playbyweb@gmail.com");
$conn_g->setPassword("worgus11");
$connections_gmail[] =& $conn_g;
$conn_g2 =& new Swift_Connection_SMTP("smtp.gmail.com", SWIFT_SMTP_PORT_SECURE, SWIFT_SMTP_ENC_TLS);
$conn_g2->setUsername("pbw.emailer@gmail.com");
$conn_g2->setPassword("worgus11");
$connections_gmail[] =& $conn_g2;
// Add another Gmail connection here if needed. Will also have to edit function gmail_conn() if you do so.
$conn_s =& new Swift_Connection_Sendmail();
$connections_gmail[] =& $conn_s;
$connections_def[] =& $conn_s;
$conn_n =& new Swift_Connection_NativeMail();
$connections_gmail[] =& $conn_n;
$connections_def[] =& $conn_n;
$mailer_gmail =& new Swift(new Swift_Connection_Multi($connections_gmail));
$mailer_def =& new Swift(new Swift_Connection_Multi($connections_def));
//1 mails per batch with a 10 second pause between batches (Author suggests 100/batch, 30 sec.
$mailer_gmail->attachPlugin(new Swift_Plugin_AntiFlood(1, 10), "anti-flood");
$mailer_def->attachPlugin(new Swift_Plugin_AntiFlood(1, 10), "anti-flood");
// Report any errors that occurred.
if ($e !== null) { echo "An error occurred" . $e->getMessage(); }
else Swift_Errors::clear("Swift_Exception");
Code: Select all
An error occurredAuthentication failed using username 'playbyweb@gmail.com' and password '********'Free For All (3e) - Secret Stuff - 1 new messages sent to (12:36:24):
Flax - im2l8m8@hotmail.com
Free For All (3e) - Find the herrings - 2 new messages sent to (12:36:34):
Flax - im2l8m8@hotmail.com
flurrywind - kanon11@yahoo.com (Send by Gmail SMTP)
Torenai - cheatman@msn.com
jatarri - jatarri1@gmail.com
E-mails sent by Gmail SMTP: 1 (This time: 1) Used connection: Gmail #0 (playbyweb@gmail.com)
An error occurredExpected response code(s) [250] but got response [530-5.5.1 Authentication Required. Learn more at
530 5.5.1 http://mail.google.com/support/bin/answ ... swer=14257 y67sm698870pyg.39]<h3>Log Information</h3><pre><< 250-zibal.lunarservers.com Hello playb4 at [74.50.5.131]
250-SIZE 52428800
250-PIPELINING
250-AUTH PLAIN LOGIN
250-STARTTLS
250 HELP
++ Message sent to 1/1 recipients
>> MAIL FROM: <emailer@playbyweb.com>
<< 250 OK
>> RCPT TO: <im2l8m8@hotmail.com>
<< 250 Accepted
>> DATA
<< 354 Enter message, ending with "." on a line by itself
>> <MESSAGE DATA>
>>
.
<< 250 OK id=1Jw0Ic-0004np-NO
>> QUIT
<< 221 zibal.lunarservers.com closing connection
<< 220-zibal.lunarservers.com ESMTP Exim 4.68 #1 Tue, 13 May 2008 12:36:44 -0700
220-We do not authorize the use of this system to transport unsolicited,
220 and/or bulk e-mail.
>> EHLO [74.50.5.131]
<< 250-zibal.lunarservers.com Hello playb4 at [74.50.5.131]
250-SIZE 52428800
250-PIPELINING
250-AUTH PLAIN LOGIN
250-STARTTLS
250 HELP
++ Message sent to 1/1 recipients
>> MAIL FROM: <emailer@playbyweb.com>
<< 250 OK
>> RCPT TO: <cheatman@msn.com>
<< 250 Accepted
>> DATA
<< 354 Enter message, ending with "." on a line by itself
>> <MESSAGE DATA>
>>
.
<< 250 OK id=1Jw0In-0004tF-40
>> QUIT
<< 221 zibal.lunarservers.com closing connection
<< 220-zibal.lunarservers.com ESMTP Exim 4.68 #1 Tue, 13 May 2008 12:36:57 -0700
220-We do not authorize the use of this system to transport unsolicited,
220 and/or bulk e-mail.
>> EHLO [74.50.5.131]
<< 250-zibal.lunarservers.com Hello playb4 at [74.50.5.131]
250-SIZE 52428800
250-PIPELINING
250-AUTH PLAIN LOGIN
250-STARTTLS
250 HELP
++ Message sent to 1/1 recipients
>> MAIL FROM: <emailer@playbyweb.com>
<< 250 OK
>> RCPT TO: <jatarri1@gmail.com>
<< 250 Accepted
>> DATA
<< 354 Enter message, ending with "." on a line by itself
>> <MESSAGE DATA>
>>
.
<< 250 OK id=1Jw0J0-0004xv-2l
>> QUIT
<< 221 zibal.lunarservers.com closing connection
<< 220-zibal.lunarservers.com ESMTP Exim 4.68 #1 Tue, 13 May 2008 12:37:08 -0700
220-We do not authorize the use of this system to transport unsolicited,
220 and/or bulk e-mail.
>> EHLO [74.50.5.131]
<< 250-zibal.lunarservers.com Hello playb4 at [74.50.5.131]
250-SIZE 52428800
250-PIPELINING
250-AUTH PLAIN LOGIN
250-STARTTLS
250 HELP
++ Message sent to 1/1 recipients
>> MAIL FROM: <emailer@playbyweb.com>
<< 530-5.5.1 Authentication Required. Learn more at
530 5.5.1 http://mail.google.com/support/bin/answ ... swer=14257 y67sm698870pyg.39
!! Expected response code(s) [250] but got response [530-5.5.1 Authentication Required. Learn more at
530 5.5.1 http://mail.google.com/support/bin/answ ... swer=14257 y67sm698870pyg.39]</pre>
Free For All (3e) - More Secret Stuff - 8 new messages sent to (12:37:35):
Flax - im2l8m8@hotmail.com
*******************************************
SENDING NOTES
*******************************************
No notes to e-mail on Tuesday 13th of May 2008 12:37:45 PM
*******************************************
REPORTS
*******************************************
Failed recipients: kanon11@yahoo.com
SWIFTMAILER LOG:
<< 530-5.5.1 Authentication Required. Learn more at
530 5.5.1 http://mail.google.com/support/bin/answ ... swer=14257 y67sm698870pyg.39
!! Expected response code(s) [250] but got response [530-5.5.1 Authentication Required. Learn more at
530 5.5.1 http://mail.google.com/support/bin/answ ... swer=14257 y67sm698870pyg.39]
>> RCPT TO: <kanon11@yahoo.com>
<< 530-5.5.1 Authentication Required. Learn more at
530 5.5.1 http://mail.google.com/support/bin/answ ... swer=14257 y67sm698870pyg.39
!! Expected response code(s) [250] but got response [530-5.5.1 Authentication Required. Learn more at
530 5.5.1 http://mail.google.com/support/bin/answ ... swer=14257 y67sm698870pyg.39]
!! Recipient 'kanon11@yahoo.com' rejected by connection.
>> RSET
<< 250 2.1.0 Flushed y67sm698870pyg.39
>> QUIT
<< 221 2.0.0 mx.google.com closing connection y67sm698870pyg.39
<< 220 mx.google.com ESMTP z38sm252179pyg.25
>> EHLO [74.50.5.131]
<< 250-mx.google.com at your service, [74.50.5.131]
250-SIZE 28311552
250-8BITMIME
250-AUTH LOGIN PLAIN
250 ENHANCEDSTATUSCODES
>> AUTH PLAIN cGxheWJ5d2ViQGdtYWlsLmNvbQBwbGF5Ynl3ZWJAZ21haWwuY29tAHdvcmd1czEx
<< 535-5.7.1 Username and Password not accepted. Learn more at
535 5.7.1 http://mail.google.com/support/bin/answ ... swer=14257 z38sm252179pyg.25
!! Expected response code(s) [235] but got response [535-5.7.1 Username and Password not accepted. Learn more at
535 5.7.1 http://mail.google.com/support/bin/answ ... swer=14257 z38sm252179pyg.25]
>> RSET
<< 250 2.1.0 Flushed z38sm252179pyg.25
>> AUTH LOGIN
<< 334 VXNlcm5hbWU6
>> cGxheWJ5d2ViQGdtYWlsLmNvbQ==
<< 334 UGFzc3dvcmQ6
>> d29yZ3VzMTE=
<< 535-5.7.1 Username and Password not accepted. Learn more at
535 5.7.1 http://mail.google.com/support/bin/answ ... swer=14257 z38sm252179pyg.25
!! Expected response code(s) [235] but got response [535-5.7.1 Username and Password not accepted. Learn more at
535 5.7.1 http://mail.google.com/support/bin/answ ... swer=14257 z38sm252179pyg.25]
>> RSET
<< 250 2.1.0 Flushed z38sm252179pyg.25
>> QUIT
<< 220 mx.google.com ESMTP s59sm243565pyh.40
<< 220 mx.google.com ESMTP w38sm722201pyg.3
>> EHLO [74.50.5.131]
<< 250-mx.google.com at your service, [74.50.5.131]
250-SIZE 28311552
250-8BITMIME
250-AUTH LOGIN PLAIN
250 ENHANCEDSTATUSCODES
>> AUTH PLAIN cGxheWJ5d2ViQGdtYWlsLmNvbQBwbGF5Ynl3ZWJAZ21haWwuY29tAHdvcmd1czEx
<< 535-5.7.1 Username and Password not accepted. Learn more at
535 5.7.1 http://mail.google.com/support/bin/answ ... swer=14257 w38sm722201pyg.3
!! Expected response code(s) [235] but got response [535-5.7.1 Username and Password not accepted. Learn more at
535 5.7.1 http://mail.google.com/support/bin/answ ... swer=14257 w38sm722201pyg.3]
>> RSET
<< 250 2.1.0 Flushed w38sm722201pyg.3
>> AUTH LOGIN
<< 334 VXNlcm5hbWU6
>> cGxheWJ5d2ViQGdtYWlsLmNvbQ==
<< 334 UGFzc3dvcmQ6
>> d29yZ3VzMTE=
<< 535-5.7.1 Username and Password not accepted. Learn more at
535 5.7.1 http://mail.google.com/support/bin/answ ... swer=14257 w38sm722201pyg.3
!! Expected response code(s) [235] but got response [535-5.7.1 Username and Password not accepted. Learn more at
535 5.7.1 http://mail.google.com/support/bin/answ ... swer=14257 w38sm722201pyg.3]
>> RSET
<< 250 2.1.0 Flushed w38sm722201pyg.3
>> <MESSAGE DATA>
++ Message sent to 1/1 recipients
>> <MESSAGE DATA>
++ Message sent to 1/1 recipients