Email problem with CodeIgniter

skypanther

Exalted Code Master!
I'm having troubles with sending mail from a CodeIgniter based site. Actually, mail was working for a while but now I'm getting this:

20 rblsmtpd.local
hello: 250-rblsmtpd.local
250 STARTTLS
Failed to send AUTH LOGIN command. Error: 451 http://www.spamhaus.org/query/bl?ip=IP_ADDRESS_REMOVED
from: 250 rblsmtpd.local
to: 451 http://www.spamhaus.org/query/bl?ip=IP_ADDRESS_REMOVED
The following SMTP error was encountered: 451 http://www.spamhaus.org/query/bl?ip=IP_ADDRESS_REMOVED
data: 451 http://www.spamhaus.org/query/bl?ip=IP_ADDRESS_REMOVED
The following SMTP error was encountered: 451 http://www.spamhaus.org/query/bl?ip=IP_ADDRESS_REMOVED
451 http://www.spamhaus.org/query/bl?ip=69.205.116.243
The following SMTP error was encountered: 451 http://www.spamhaus.org/query/bl?ip=IP_ADDRESS_REMOVED
Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.

I have SMTP Auth enabled as best as I can tell from the somewhat spotty CI documentation:
$config = array(
'smtp_host' => 'mail.mydomain .com',
'smtp_user' => 'user@mydomain .com',
'smtp_pass' => 'the_password',
'protocol' => 'smtp',
'_smtp_auth' => TRUE,
'crlf' => "\r\n",
'newline' => "\r\n",
'mailtype' => 'html',
'wordwrap' => FALSE,
'ek_from' => 'address@mydomain .com',
'ek_from_name' => 'Jane Doe'
);


Anyone here used CI and gotten email to work?
 
*facepalm* :doh:

I was testing with my localhost copy of the site. The live one works fine. Nevermind.
 
Back
Top