Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5972737
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:42:02+00:00 2026-05-22T20:42:02+00:00

I am trying to send an email using codeigniter through JangoSMTP and for whatever

  • 0

I am trying to send an email using codeigniter through JangoSMTP and for whatever reason the script takes about 60-70 seconds then gives me an error on the last portion of the process, the send.

Here is CI’s debug..

*220 relay.jangosmtp.net ESMTP Welcome to the JangoSMTP trackable email relay system.; Thu, 05 May 2011 19:08:15 -0000

hello: 250-relay.jangosmtp.net Hello netdesk.aiwebsystems.com [173.236.184.252], pleased to meet you.

250-ENHANCEDSTATUSCODES

250-SIZE

250-EXPN

250-ETRN

250-ATRN

250-DSN

250-CHECKPOINT

250-8BITMIME

250-AUTH CRAM-MD5 PLAIN LOGIN DIGEST-MD5

250-STARTTLS

250 HELP

from: 250 2.1.0 ... Sender ok

to: 250 2.1.5 ... Recipient ok; will forward

to: 250 2.1.5 ... Recipient ok; will forward

data: 354 Enter mail, end with "." on a line by itself

The following SMTP error was encountered: 

Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.

User-Agent: CodeIgniter

Date: Thu, 5 May 2011 14:08:16 -0500

From: "Ryan Thompson" 

Return-Path: 

To: service@aiwebsystems.com

Subject: =?utf-8?Q?Email_Test_SMTP?=

Reply-To: "service@aiwebsystems.com" 

X-Sender: service@aiwebsystems.com

X-Mailer: CodeIgniter

X-Priority: 3 (Normal)

Message-ID: <4dc2f5a0b3518@aiwebsystems.com>

Mime-Version: 1.0

Content-Type: text/plain; charset=utf-8

Content-Transfer-Encoding: 8bit

Testing the email class.*

Here is the simple code I am using to send in a sandbox controller..

   function smtp(){
        $this->load->library('email');

        $config['protocol'] = 'smtp';
        $config['smtp_host'] = 'relay.jangosmtp.net';
        $config['smtp_user'] = 'MYUSERNAME';
        $config['smtp_pass'] = 'MYPASS';

        $this->email->initialize($config);

        $this->email->from('myemail@aiwebsystems.com', 'Ryan Thompson');
        $this->email->to('myemail@aiwebsystems.com'); 

        $this->email->subject('Email Test SMTP');
        $this->email->message('Testing the email class.');  

        $this->email->send();

        echo $this->email->print_debugger();
    }

I tested this exact same thing with my regular email host and creds and it popped one off perfectly.

I don’t have any IP restrictions or From: restrictions at Jango. I am authing only as username/pass.

My CI Version is 2.0.0

I am at the end of my wits!! My Email.php class file is un-edited.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T20:42:03+00:00Added an answer on May 22, 2026 at 8:42 pm

    See here

    The problem is likely due to the fact that CodeIgniter defaults to using LF as the line terminator, rather than CRLF required by RFC. Add this code:

    $this->config['crlf'] = '\r\n';
    $this->config['newline'] = '\r\n';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to send an email (through gmail) using python script that someone
I am trying to send email using smtp authentication through google but I am
I'm trying to send an email using codeigniter, and would like the message to
I am trying to send email through gmail using PHPMailer_V5.1. Getting the following error,
I am trying to send email using Exchange 2007 from a console app using
I'm trying to send an email message using the .NET MailMessage class which can
I am trying to send an HTML email using Perl. open(MAIL,|/usr/sbin/sendmail -t); ## Mail
I am trying to send an email in ASP.NET using system.net.mail the problem is
I'm sending out an email using CodeIgniter 's built in library. All I'm trying
Hey guys, I am trying to send email using my gmail account, and I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.