Guest User

Untitled

a guest
Feb 14th, 2019
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.42 KB | None | 0 0
  1. Severity: Warning
  2.  
  3. Message: fsockopen(): unable to connect to ssl://smtp.gmail.com:25 (Connection timed out)
  4.  
  5. Filename: libraries/Email.php
  6.  
  7. Line Number: 2069
  8.  
  9. The following SMTP error was encountered: 110 Connection timed out
  10. Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.
  11.  
  12. Date: Thu, 14 Feb 2019 10:52:06 +0100
  13. From: "arazu" <arazugajera98@gmail.com>
  14. Return-Path: <arazugajera98@gmail.com>
  15. To: arazugajera98@gmail.com
  16. Subject: =?UTF-8?Q?Reset=20your=20passwrod?=
  17. Reply-To: <arazugajera98@gmail.com>
  18. User-Agent: CodeIgniter
  19. X-Sender: arazugajera98@gmail.com
  20. X-Mailer: CodeIgniter
  21. X-Priority: 3 (Normal)
  22. Message-ID: <5c653a46009bc@gmail.com>
  23. Mime-Version: 1.0
  24.  
  25.  
  26. Content-Type: multipart/alternative; boundary="B_ALT_5c653a46009c6"
  27.  
  28. This is a multi-part message in MIME format.
  29. Your email application may not support this format.
  30.  
  31. --B_ALT_5c653a46009c6
  32. Content-Type: text/plain; charset=UTF-8
  33. Content-Transfer-Encoding: 8bit
  34.  
  35. Click Here if you want to reset your password
  36.  
  37.  
  38. --B_ALT_5c653a46009c6
  39. Content-Type: text/html; charset=UTF-8
  40. Content-Transfer-Encoding: quoted-printable
  41.  
  42. =3Ca href=3D'http://127.0.0.1/CodeIgniter/login/reset=5Fpassword/a5ea8860b0=
  43. 5acc175d4c1847fab1f2ee'=3EClick Here=3C/a=3E if you want to reset your pass=
  44. word
  45.  
  46. --B_ALT_5c653a46009c6--
  47.  
  48. public function forgot_password(){
  49. $this->load->library('form_validation');
  50. $this->form_validation->set_rules('email','email','trim|required|valid_email');
  51. if($this->form_validation->run() == FALSE){
  52. echo "please enter email";
  53. $this->load->view('recover_password');
  54. }
  55. else{
  56. $email = $this->input->post('email');
  57. $result = $this->registration_model->email_exists($email);
  58. if($result == TRUE){
  59. $temp_pass=md5(uniqid());
  60. $email_config = array(
  61. 'smtp_host'=>'localhost',
  62. 'smtp_user'=>'arazugajera98@gmail.com',
  63. 'smtp_pass'=>'*******',
  64. 'smtp_port'=>25,
  65. 'charset' => 'utf-8',
  66. 'protocol'=>'smtp',
  67. 'mailtype'=>'html'
  68. );
  69. $this->load->library('email');
  70. $this->email->initialize($email_config);
  71.  
  72. $this->email->set_newline('rn');
  73. $this->email->from('arazugajera98@gmail.com','arazu');
  74. $this->email->to($this->input->post('email'));
  75. $this->email->subject('Reset your passwrod');
  76.  
  77. $message = "this email is sent you to reset your password";
  78. $message = "<a href='".base_url()."login/reset_password/$temp_pass'>Click Here</a> if you want to reset your password";
  79.  
  80. $this->email->message($message);
  81. $this->email->set_newline("rn");
  82. if($this->email->send()){
  83. echo "hello"; exit();
  84. if($this->registration_model->temp_reset_password($temp_pass)){
  85. echo 'check your for instruction, thank you';
  86. }
  87. }
  88. else{
  89. //echo "email is not sent, please contact your administrator";
  90. echo $this->email->print_debugger();
  91. }
  92. }else{
  93. echo "your email is not exists into database";
  94. }
  95. }
  96.  
  97. }
  98.  
  99. how i send mail in codeigniter?
Add Comment
Please, Sign In to add comment