Showing
... | @@ -311,13 +311,13 @@ function send_mail($msg,$email,$sub) | ... | @@ -311,13 +311,13 @@ function send_mail($msg,$email,$sub) |
$settings = $CI->db->get('settings')->row(); | $settings = $CI->db->get('settings')->row(); | ||
/*//print_r($msg);die(); | //print_r($msg);die(); | ||
$configs = array( | $configs = array( | ||
'protocol'=>'smtp', | 'protocol'=>'mail', | ||
'smtp_host'=>decrypt_data($settings->smtp_host), | 'smtp_host'=>decrypt_data($settings->smtp_host), | ||
... | @@ -325,7 +325,7 @@ function send_mail($msg,$email,$sub) | ... | @@ -325,7 +325,7 @@ function send_mail($msg,$email,$sub) |
'smtp_pass'=>decrypt_data($settings->smtp_password), | 'smtp_pass'=>decrypt_data($settings->smtp_password), | ||
'smtp_port'=>'25', | 'smtp_port'=>25, | ||
'smtp_timeout'=>20, | 'smtp_timeout'=>20, | ||
... | @@ -335,20 +335,8 @@ function send_mail($msg,$email,$sub) | ... | @@ -335,20 +335,8 @@ function send_mail($msg,$email,$sub) |
'wordwrap' => TRUE | 'wordwrap' => TRUE | ||
); */ | ); | ||
$smtp_host = "techlabz.in"; | |||
$smtp_password = 'Golden_123'; | |||
$smtp_username = "[email protected]"; | |||
//print_r($smtp_username); | |||
$host = $smtp_host; | |||
$pass= $smtp_password; | |||
$username = $smtp_username; | |||
$configs['protocol'] = 'mail'; | |||
$configs['smtp_host'] = $host; | |||
$configs['smtp_user'] = $username; | |||
$configs['smtp_pass'] = $pass; | |||
$configs['smtp_port'] = 25; | |||
$configs['mailtype'] = 'html'; | |||
$CI->load->library('email', $configs); | $CI->load->library('email', $configs); | ||
... | @@ -361,7 +349,7 @@ function send_mail($msg,$email,$sub) | ... | @@ -361,7 +349,7 @@ function send_mail($msg,$email,$sub) |
->from($settings->admin_email, 'Ipok') | ->from($settings->admin_email, 'Ipok') | ||
->to('[email protected]') | ->to($email) | ||
->subject($sub) | ->subject($sub) | ||
... | @@ -369,8 +357,6 @@ function send_mail($msg,$email,$sub) | ... | @@ -369,8 +357,6 @@ function send_mail($msg,$email,$sub) |
$CI->email->send(); | $CI->email->send(); | ||
} | } | ||
... | ... |
Please
register
or
sign in
to comment