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

[eluser]Krystian[/eluser]
Hi,

sending mails using gmail works fine for about 1week. Now I`m getting ssl error.

so I`ve tried this instead as a test
Code:
public function testmail()
{
  $this->load->helper('email');
  send_email('[email protected]', 'simple mail', 'message');
  
  
  $this->load->library('email');

  $this->email->from('[email protected]', 'Your Name');
  $this->email->to('[email protected]');
  $this->email->subject('Email lib Test');
  $this->email->message('Testing the email class.');
  
  $this->email->send();
  
  echo $this->email->print_debugger();
}
and I`m only receiving mail from send_mail();
print debugger shows

Your message has been successfully sent using the following protocol: mail
From: "Your Name"
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?Email_lib_Test?=
Testing the email class.

I want to use sending mails in:
1. Simple contect form
2. Sending newsletter ( question is if send_mail() can handle e.g 100 mails )




Theme © iAndrew 2016 - Forum software by © MyBB