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 8783595
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:51:33+00:00 2026-06-13T20:51:33+00:00

I don’t know where i am doing wrong. I am following codeIgniter user guide

  • 0

I don’t know where i am doing wrong. I am following codeIgniter user guide only. I pasting code of controller……………

function do_upload()
{
    $config['upload_path'] = 'C:\xampp\htdocs\upload\application';
    $config['allowed_types'] = 'doc|docx|pdf';
    $config['max_size'] = '10240';

    $this->load->library('upload', $config);

    if ( ! $this->upload->do_upload())
    {
        $error = array('error' => $this->upload->display_errors());

        $this->load->view('upload_form', $error);
    }
    else
    {
        $data = array('upload_data' => $this->upload->data());

        echo "Resume Successfully uploaded to database.............";
    }

    $file = $data['upload_data']['full_path'];

    $config = Array(
      'protocol' => 'smtp',
      'smtp_host' => 'ssl://smtp.googlemail.com',
      'smtp_port' => 465,
      'smtp_user' => '****************', // change it to yours
      'smtp_pass' => '******', // change it to yours
      'mailtype' => 'html',
      'charset' => 'iso-8859-1',
      'wordwrap' => TRUE
    );

      $this->load->library('email', $config);
      $this->email->set_newline("\r\n");
      $this->email->from('*************'); // change it to yours
      $this->email->to('***************'); // change it to yours
      $this->email->subject('Email using Gmail.');
      $this->email->message('Working fine ! !');

      if($this->email->send())
     {
      echo 'Email sent.';
     }
     else
    {
     show_error($this->email->print_debugger());
    }
}

The following SMTP error was encountered: 185667876 Unable to find the
socket transport “ssl” – did you forget to enable it when you
configured PHP? Unable to send data: AUTH LOGIN Failed to send AUTH
LOGIN command. Error: Unable to send data: MAIL FROM:

from: The following SMTP error was encountered: Unable to send data:
RCPT TO:

to: The following SMTP error was encountered: Unable to send data:
DATA

data: The following SMTP error was encountered: Unable to send data:
User-Agent: CodeIgniter Date: Wed, 31 Oct 2012 08:36:21 +0100 From:
Return-Path: To: test@example.com Subject:
=?iso-8859-1?Q?Email_using_Gmail.?= Reply-To: “test@example.com” X-Sender:
test@example.com X-Mailer: CodeIgniter X-Priority: 3
(Normal) Message-ID: <5090d4f5df7bb@gmail.com> Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=”B_ALT_5090d4f5df7d8″
This is a multi-part message in MIME format. Your email application
may not support this format. –B_ALT_5090d4f5df7d8 Content-Type:
text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Working
fine ! ! –B_ALT_5090d4f5df7d8 Content-Type: text/html;
charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Working
fine ! ! –B_ALT_5090d4f5df7d8– Unable to send data: .

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.

  • 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-06-13T20:51:34+00:00Added an answer on June 13, 2026 at 8:51 pm

    Man… You should try upload first, when it get done, you try to solve the e-mail problem. And you dont need it: ‘smtp_host’ => ‘ ssl:// smtp.googlemail.com’
    the ssl:// part

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Don't know if it's I'm doing it wrong or if there's a bug (I
don't know better title for this, but here's my code. I have class user
I don't know why, but this code worked for me a month ago... maybe
Don't know what's wrong here, when I run the application it says Specified method
Don't understand this simple code: def main(): print (This program illustrates a chaotic function)
don't understand: in my controller: @json = User.all.to_gmaps4rails do |user| \Title\: \#{user.email}\ end in
Don't know why I can't reply to people on here with only a small
Don't know much about running a function on every item in an array, still
Don't know how to frase this but I found this code wich works as
Don't ask me how--I haven't the slightest. The following code crashes my terminal and

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.