Welcome Guest, Not a member yet? Register   Sign In
E-mail not always sent
#1

(This post was last modified: 06-04-2018, 01:44 AM by lucavalentino.)

I'm trying to send emails, but I do not always receive emails

File config email
PHP Code:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

$config['smtp_port'] =25
$config
['smtp_timeout'] = 5;
$config['crlf'] = '\r\n';
$config['newline'] = '\r\n';
$config['wordwrap'] = FALSE;
$config['mailtype'] = 'html';
$config['charset'] = 'UTF-8';
$config['wordwrap'] = TRUE
File Controller
PHP Code:

 $message
'Data login',
 
$link_base=base_url('login');
 
$message=email_template($mess_email$link_base);
 
$this->email->from('[email protected]','Online service');
 
$this->email->to($email);
 
$this->email->subject(lang('subject_e'));
 
$this->email->message($message);
 $this->email->send();
 if(!$this->email->send()){
 
 $data['messaggio'] ='Errore';
   }
 else 
 { echo 'invio no'; }
 ... 
 var_dump($this->email->print_debugger());
PHP Code:
string(37"lang:email_no_from



Help me
Reply
#2

If all the emaails are sent then you have a email server problem on the hosting end not CodeIgniter.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

(06-04-2018, 03:47 AM)InsiteFX Wrote: If all the emaails are sent then you have a email server problem on the hosting end not CodeIgniter.

Sometimes it works. With Gmail OK.
With an Italian domain example Tiscali.it Not work. 

If I use Phpmailer I have no problems
Reply
#4

I solved this way:

PHP Code:
$this->email->from('[email protected]''Email test online ''email'); 
Reply
#5

Glad you got it working.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB