Welcome Guest, Not a member yet? Register   Sign In
[solved] not reveiving emails
#1

[eluser]SPeed_FANat1c[/eluser]
Hi,

I am sending the emails, but I cannot receive them in my test email box. I am using this code:

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

      
        $this->email->from('[email protected]', 'Admin');
        $this->email->to($email);
      
        switch ($lang) {
            case 'lt' :
                $this->email->subject('Baigiasi prenumeratos galiojimo laikas');
                $this->email->message('lietuviskas message');  
            break;
            
            case 'en' :
                $this->email->subject('The subsctription is ending');
                $this->email->message('englsih message');  
            break;
            
            case 'ru' :
                $this->email->subject('rusiskai reik');
                $this->email->message('ruskij message');  
            break;
        
         }
        
        
        if ( ! $this->email->send())
        {
            log_action('Subscription ends mail', 'Nepavyko issiusti mailo');
        }
        
        echo $this->email->print_debugger();
        
        $this->email->clear();

I tried using protocols sendmail and SMTP but then I get error that my server is not configured for these. And actually I see owners of this site send emails in similar way, they just wrote a function which makes more things (adds sent emails to database and so on), I tried this function as well, but no luck to see a single message in my test gmail box.

Also I tried native mail() function, but also did not receive an email.

Have no idea what to do now, where to check for some errors. In the page I don't see any errors

Code:
Your message has been successfully sent using the following protocol: mail
From: "Admin"
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?Baigiasi_prenumeratos_galiojimo_laikas?=
lietuviskas message

can you help me?
#2

[eluser]InsiteFX[/eluser]
Shouldn't this be:

InsiteFX
#3

[eluser]SPeed_FANat1c[/eluser]
does this

Code:
$this->email->from('[email protected]', 'Admin');


have to be real email address? even [email protected] does not exist.
#4

[eluser]InsiteFX[/eluser]
Test Mail Server Tool

For testing all my eamils.

InsiteFX
#5

[eluser]SPeed_FANat1c[/eluser]
found the mistake, I have created test box [email protected] instead of [email protected] but tried to send to [email protected] Big Grin

Thank you for your responses Smile




Theme © iAndrew 2016 - Forum software by © MyBB