CodeIgniter Forums
email class problem - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: email class problem (/showthread.php?tid=54197)



email class problem - El Forum - 08-28-2012

[eluser]Krystian[/eluser]
Hi,

I`m trying to send mail from my website.

this is the test code
Code:
$this->load->library('email');

  $this->email->from('[email protected]', 'John Doe');
  $this->email->to('HERE IS MY MAIL');
  $this->email->subject('...::: Mail FROM WWW :::...');

  $this->email->message('this is the content message');
                //$this->email->message($this->load->view('some_view', $message, true));
  
  $this->email->send();
  
  echo $this->email->print_debugger();

I`m receiving

Your message has been successfully sent using the following protocol: mail
From: "John Doe"
Return-Path:
Reply-To: "[email protected]"
X-Sender: [email protected]
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <[email protected]>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
=?utf-8?Q?...::: Mail FROM WWW :::...?=
this is the content message

So CI shows message that everything is OK but I don`t receive this mail.
Of course application is on the production server.

Can you give me some tips what can be wrong?


email class problem - El Forum - 08-28-2012

[eluser]DarkManX[/eluser]
you checked the spam folder? often mailprovider blacklist the mails with dont have proper headers


email class problem - El Forum - 08-28-2012

[eluser]Krystian[/eluser]
yes I`ve checked it.
I have no clue what is going on.
And I`m starting to thinking of sending messages via gmail account....


email class problem - El Forum - 08-28-2012

[eluser]DarkManX[/eluser]
you can just replace the ci-email sending by the native mail() and see whether the mails arrive or not. dont think it has something to do with the ci itself