Welcome Guest, Not a member yet? Register   Sign In
Error with email class in CI 3.1.8
#10

(04-05-2018, 01:02 AM)farukga Wrote:
(04-05-2018, 12:18 AM)ardavan Wrote: i can't understand what's your mean by $this->email = "examplestring" and attribute $email = "examplestring"
can you please give me a sample code?

even im doing the same on another project with CI 3.1.5 and it works. idk why is not working in 3.1.8 !

Hi @ardavan

Can you please print out $this->config and post your response?

(04-05-2018, 03:31 AM)InsiteFX Wrote: CodeIgniter version 3.1.8 expects all parameters in the from methods to be strings.

I would assign your variables to string variables and then pass them into the email form.
or cast them to a string to see if that works (string) variable.

This is what i got from it and im sure that my from parameter is a String:
Code:
object(CI_Config)#3 (3) {
  ["config"]=>
  &array(54) {
    ["base_url"]=>
    string(22) "http://xx.xx.com/"
    ["index_page"]=>
    string(0) ""
    ["uri_protocol"]=>
    string(11) "REQUEST_URI"
    ["url_suffix"]=>
    string(0) ""
    ["language"]=>
    string(7) "english"
    ["charset"]=>
    string(5) "UTF-8"
    ["enable_hooks"]=>
    bool(false)
    ["subclass_prefix"]=>
    string(0) ""
    ["composer_autoload"]=>
    bool(false)
    ["permitted_uri_chars"]=>
    string(14) "a-z 0-9~%.:_\-"
    ["enable_query_strings"]=>
    bool(false)
    ["controller_trigger"]=>
    string(1) "c"
    ["function_trigger"]=>
    string(1) "m"
    ["directory_trigger"]=>
    string(1) "d"
    ["allow_get_array"]=>
    bool(true)
    ["log_threshold"]=>
    int(4)
    ["log_path"]=>
    string(0) ""
    ["log_file_extension"]=>
    string(0) ""
    ["log_file_permissions"]=>
    int(420)
    ["log_date_format"]=>
    string(11) "Y-m-d H:i:s"
    ["error_views_path"]=>
    string(0) ""
    ["cache_path"]=>
    string(0) ""
    ["cache_query_string"]=>
    bool(false)
    ["encryption_key"]=>
    string(0) ""
    ["sess_driver"]=>
    string(5) "files"
    ["sess_cookie_name"]=>
    string(10) "ci_session"
    ["sess_expiration"]=>
    int(7200)
    ["sess_save_path"]=>
    NULL
    ["sess_match_ip"]=>
    bool(false)
    ["sess_time_to_update"]=>
    int(300)
    ["sess_regenerate_destroy"]=>
    bool(false)
    ["cookie_prefix"]=>
    string(0) ""
    ["cookie_domain"]=>
    string(0) ""
    ["cookie_path"]=>
    string(1) "/"
    ["cookie_secure"]=>
    bool(false)
    ["cookie_httponly"]=>
    bool(false)
    ["standardize_newlines"]=>
    bool(false)
    ["global_xss_filtering"]=>
    bool(true)
    ["csrf_protection"]=>
    bool(false)
    ["csrf_token_name"]=>
    string(14) "csrf_test_name"
    ["csrf_cookie_name"]=>
    string(16) "csrf_cookie_name"
    ["csrf_expire"]=>
    int(7200)
    ["csrf_regenerate"]=>
    bool(true)
    ["csrf_exclude_uris"]=>
    array(0) {
    }
    ["compress_output"]=>
    bool(false)
    ["time_reference"]=>
    string(5) "local"
    ["rewrite_short_tags"]=>
    bool(false)
    ["proxy_ips"]=>
    string(0) ""
    ["from"]=>
    string(16) "[email protected]" // but this is my actual domain
  }
  ["is_loaded"]=>
  array(1) {
    [0]=>
    string(72) "/home1/xx/public_html/um/application/config/application_config.php"
  }
  ["_config_paths"]=>
  array(1) {
    [0]=>
    string(43) "/home1/xx/public_html/um/application/"
  }
}
Reply


Messages In This Thread
Error with email class in CI 3.1.8 - by ardavan - 04-04-2018, 12:57 AM
RE: Error with email class in CI 3.1.8 - by ardavan - 04-05-2018, 05:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB