Welcome Guest, Not a member yet? Register   Sign In
Gmail giving warning when receiving email
#2

(This post was last modified: 07-10-2018, 11:48 PM by Pertti.)

Because the way emails work, the "From" field is free-form text inside the email, so you could say it's from Bill Gates and [email protected]. Luckily, each server that passes the email on adds it's own fingerprint in email headers, and it's common practice to check that the first server email was sent from actually matches the email address domain.

The warning in email suggests that your email SMTP config uses different email service/login than [email protected].

As for it being slow, it depends on what server/service you are using to send that email, but some services can get quite slow. There's some other things going on in that function, so you could check what causes the slow down:

PHP Code:
public function boatsale_email($id)
{
    echo 
'<pre>';
    echo 
date('H:i:s'), " Prep email\n";
    
$this->load->model'Customers_model' ); //loads model
    
$data $this->Boatsale_model->get_boatsale_code($id);
    
$data2 $this->Customers_model->get_cust_info_edit_bs$id );
    
$bs_code $data->bs_code;
    
$email $data2->email;
    
$this->load->library('email');
    
$this->email->from('[email protected]''Central Georgia Marina');
    
$this->email->to($email);
    
$this->email->reply_to('[email protected]''Central Georgia Marina');
    
$this->email->set_alt_message('To view the message, please use an HTML compatible email viewer!');
    
$this->email->subject('Your Central Georgia Boat Sale Invoice');
    
$this->email->message('Please click ' base_url(). 'boatsale/boatsale_inv/' $bs_code ' to view and print your recent invoice');
    echo 
date('H:i:s'), " Send email\n";
    
$this->email->send();
    echo 
date('H:i:s'), " Email sent\n";
    echo 
'</pre>';
    
// redirect("boatsale/boatsale_print/$id"); <-- comment out, redirect would get rid of the debug output

Reply


Messages In This Thread
RE: Gmail giving warning when receiving email - by Pertti - 07-10-2018, 11:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB