Welcome Guest, Not a member yet? Register   Sign In
email class problem
#1

[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?
#2

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

[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....
#4

[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




Theme © iAndrew 2016 - Forum software by © MyBB