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

  • Home
  • SEARCH
  • 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 8346681
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T07:05:52+00:00 2026-06-09T07:05:52+00:00

So the code: $this->load->library(’email’); $this->email->from(‘mysite@mysite.com’, ‘mysite’); $this->email->to($email); $this->email->subject(‘Email Test’); $this->email->message(‘Testing the email class.’); $this->email->send();

  • 0

So the code:

        $this->load->library('email');

        $this->email->from('mysite@mysite.com', 'mysite');
        $this->email->to($email); 

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

        $this->email->send();

I can’t understand why there is no errors when I send an email, but when I check my email box, there is no emails, so it looks like the email don’t reaches his destination, I am using CodeIgniter, maybe i need to add some other settings to fix this?? please help!!

ps: I have also used the native mail() function, anyway the email doesn’t comes, I was checking it in gmail

Your message has been successfully sent using the following protocol: mail
From: "mysite" 
Return-Path: 
Reply-To: "mysite@mysite.kg" 
X-Sender: mysite@mysite.kg
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <501f4f33580d5@mysite.kg>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
=?utf-8?Q?Email_Test?=
Testing the email class.

is there something wrong?

  • 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-09T07:05:57+00:00Added an answer on June 9, 2026 at 7:05 am

    Are you using this on a localhost server, or on a production server? If you are using your own installation of Apache, PHP and MySQL (such as manual installation, WAMP, XAMPP, MAMP, etc.), then you may not have a mail server installed on your localhost machine for sending mail.

    Try the following:

    mail('you@youremail.com', 'My Subject', 'Test message...');
    

    If this does not work, then most likely you do not have a mail server installed on your server.

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

Sidebar

Related Questions

I wrote this code to sent a mail in codeigniter $this->mailconfig['mailtype']='text'; $this->load->library('email', $this->mailconfig); $this->email->from('ajithm@qburst.com','Tony');
In my library's code, I load class names from an XML file using JAXB,
Is it possible to load an library from within a library in code igniter?
I trying to load SFmpq.dll via this code static { Native.setProtected(true); System.setProperty(jna.library.path, new File(lib).getAbsolutePath());
I am wondering if you were to write the following Codeigniter PHP code: $this->load->library('form_validation');
I use this code to load a .Net assembly to PowerShell: [System.Reflection.Assembly]::Load(System.Windows.Forms, Version=2.0.0.0, Culture=neutral,
I have this code to load icon and application name , but it is
When i execute this code to load a image and store in database it
This code works anywhere else.. form load, button click, etc. But when I add
I have got this code: XDocument xdoc = XDocument.Load(URI); XElement root = xdoc.Element(forecast); //get

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.