My problem the mail in the application is send but when send the receiver email only have the subject and message . How may allow them to see the from address
please i need assistance
[code]
// For Resend activation link for user.
function resenduser($id)
{
$headers = "From: utechreport\r\n";
$headers .= "Content-type: text/html\r\n";
$user = $this->ion_auth->user($id)->row();
$to = $user->email;
$subject = "Mysba - Account Activation";
$message = "welcome to Mysba ,";
//echo $message;
// var_dump(mail($to,$subject,$message,$headers));
mail($to,$subject,$message,$headers);
$this->session->set_flashdata('message', "Activation Link Sent Sucessfully");
redirect("auth", 'refresh');
//exit;
}
function activateresend($id, $code=false)
{
$activation = $this->ion_auth->activate($id, $code);
if ($activation)
{
//redirect them to the auth page
$this->session->set_flashdata('message', "Your Account Activated Sucessfully");
redirect("auth/login", 'refresh');
}else{
$this->session->set_flashdata('message', "Your Account Is Already Active");
redirect("auth/login", 'refresh');
}
}
}
[/code]