Smoke test error: Message did not send!

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
gr8dane
Forum Newbie
Posts: 19
Joined: Wed Aug 22, 2007 3:12 am

Smoke test error: Message did not send!

Post by gr8dane »

I just installed SwiftMailer 3.3.1 (PHP4) on a Linux server (shared host) and tried running a couple of the smoke tests. Both resulted in the error: Message did not send! Since I'm new to the whole area of sending emails through a script, the terminology is like Greek to me (i.e., I know a few words, but I'm not conversant in it), and I have no idea what the log information is telling me. Any help figuring out what's wrong would be greatly appreciated!

Here's the (slightly edited for privacy) log information:

Code: Select all

Error: Message did not send!
Log Information
++ Log level changed to 4
++ Trying to connect...
++ Trying to connect to SMTP server at 'smtp.mydomain.com:25
<< 220 smtpauth01.csee.onr.siteprotect.com ESMTP
>> EHLO [66.113.130.219]
<< 250-smtpauth01.csee.onr.siteprotect.com
250-PIPELINING
250-SIZE 28672000
250-ETRN
250-AUTH DIGEST-MD5 CRAM-MD5 LOGIN PLAIN
250-AUTH=DIGEST-MD5 CRAM-MD5 LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
++ SMTP extension 'PIPELINING' reported with attributes [].
++ SMTP extension 'SIZE' reported with attributes [28672000].
++ SMTP extension 'ETRN' reported with attributes [].
++ SMTP extension 'AUTH' reported with attributes [DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN].
++ SMTP extension 'AUTH' reported with attributes [DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN].
++ SMTP extension 'ENHANCEDSTATUSCODES' reported with attributes [].
++ SMTP extension '8BITMIME' reported with attributes [].
++ SMTP extension 'DSN' reported with attributes [].
>> MAIL FROM: <me@mydomain.com>
<< 250 2.1.0 Ok
>> RCPT TO: <me2@mydomain.com>
<< 554 5.7.1 <me2@mydomain.com>: Recipient address rejected: Access denied
!! Expected response code(s) [250] but got response [554 5.7.1 <me2@mydomain.com>: Recipient address rejected: Access denied]
!! Recipient me2@mydomain.com' rejected by connection.
>> RSET
<< 250 2.0.0 Ok
The above is with $CONNECTION_TYPE = "smtp". When I change it to "sendmail" I get the following error:

Code: Select all

Fatal error: 
Uncaught Error of type [swift_connectionexception] with message [The sendmail process is not alive and cannot be read from.
Log Information
++ Log level changed to 4
++ Trying to connect...
++ Trying to start a sendmail process.
++ Trying to stat the executable '/usr/sbin/sendmail'.
]
@0 testofbasicsend::go() in /home/www/mydomain/tests/smokes/runTestOfBasicSend.php on line 56
@1 swift::swift() in /home/www/mydomain/tests/smokes/runTestOfBasicSend.php on line 13
@2 swift::connect() in /home/www/mydomain/swift/Swift.php on line 109
@3 swift::command() in /home/www/mydomain/swift/Swift.php on line 227

in /home/www/mydomain/swift/Swift/Errors.php on line 99
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Looks like you need to use SMTP and you first need to authenticate. The server is not allowing you to send outgoing emails.

http://www.swiftmailer.org/wikidocs/v3/smtpauth
gr8dane
Forum Newbie
Posts: 19
Joined: Wed Aug 22, 2007 3:12 am

Post by gr8dane »

Authentication didn't help, but using $SMTP_HOST = "localhost" did the trick. Everything is working now, except that Test 5 always shows the plain text version, even when I change it to HTML mode. I've never had trouble viewing embedded images before, so I'm not sure what the problem could be there. Any ideas?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

gr8dane wrote:Authentication didn't help, but using $SMTP_HOST = "localhost" did the trick. Everything is working now, except that Test 5 always shows the plain text version, even when I change it to HTML mode. I've never had trouble viewing embedded images before, so I'm not sure what the problem could be there. Any ideas?
What mail client/service do you use? I'll try to reproduce it :)
gr8dane
Forum Newbie
Posts: 19
Joined: Wed Aug 22, 2007 3:12 am

Post by gr8dane »

I use Outlook 2003.
Post Reply