Error with email class in CI 3.1.8 |
(04-05-2018, 12:18 AM)ardavan Wrote: i can't understand what's your mean by $this->email = "examplestring" and attribute $email = "examplestring" The E-Mail Class work on 3.1.8. I have tested it. PHP Code: class Example extends CI_Controller { print the value $this->email
@Paradinight
thanks for your highlight I totally forgot that I made that mistake. BUT now I have another issue haha which is valid_mail Now because of the form validation, I get an error but the email is valid [email protected]
If I remember right after checking the email class that the valid_email also checks the domain.
look at the code in the email class. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
(04-05-2018, 09:31 PM)ardavan Wrote: @Paradinight Did you write valid_mail or valid_email? Error message?
If your using validate_email() it calls valid_email() which checks the domain address
that could be why your getting the error message. SEE: validate_email() and valid_email() in the ./system/libraries/Email.php class. Even the Form_validation library checks the domain name in valid_email(). What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
(04-06-2018, 08:31 PM)ardavan Wrote: im using valid_email like this Codeigniter use filter_var does not check if the domain existse. The email is valid. What is the error? Does the email exist in the user table?
./system/libraries/Form_validation.php
PHP Code: /** Now you can see that it is checking the email domain. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
(04-06-2018, 11:53 AM)Paradinight Wrote:(04-05-2018, 09:31 PM)ardavan Wrote: @Paradinight (04-06-2018, 11:40 PM)Paradinight Wrote:(04-06-2018, 08:31 PM)ardavan Wrote: im using valid_email like this The error is say the email should be a valid email address |
Welcome Guest, Not a member yet? Register Sign In |