Created
April 22, 2017 01:11
-
-
Save Tjoosten/13a75a49ad83d128441b4c3cf22a8428 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function lost() | |
{ | |
$this->form_validation->set_rules('email', 'email', 'trim|required'); | |
if ($this->form_validation->run() === false) { // Form validation fails. | |
dump(validation_errors()); | |
die(); | |
$data['title'] = $this->lang->line('title-index-login'); | |
return $this->blade->render('auth/login', $data); | |
} | |
// No validation errors. Move on. | |
$input['email'] = $this->security->xss_clean($this->input->post('email')); | |
if (PasswordReset::create($input)) { | |
// Email config | |
$emailConf['protocol'] = 'smtp'; | |
$emailConf['smtp_host'] = 'mailout.one.com'; | |
$emailConf['smtp_user'] = 'noreply@activisme.be'; | |
$emailConf['smtp_pass'] = 'ikbeneenwachtwoord'; | |
$emailConf['smtp_port'] = 25; | |
$emailConf['authencation'] = true; | |
$this->email->initialize($emailConf); // Init config | |
$this->email->from('noreply@activisme.be'); | |
$this->email->to($input['email']); | |
$this->email->subject('Activisme_BE | Wachtwoord reset'); | |
$this->email->message($this->blade->render('auth/email/lost-password', $input)); | |
$this->email->set_mailtype('html'); | |
// Build up the email. | |
if (@$this->email->send()) { | |
$this->session->set_flashdata('class', 'alert alert-success'); | |
} else { | |
echo $this->email->print_debugger(); | |
die(); | |
} | |
$this->email->clear(); | |
return 'Success'; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The following SMTP error was encountered: 10060 Een verbindingspoging is mislukt omdat de verbonden party niet correct heeft geantwoord na een bepaalde tijd, of de gemaakte verbinding is mislukt omdat de verbonden host niet heeft geantwoord. | |
Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method. | |
Date: Sat, 22 Apr 2017 04:10:21 +0300 | |
From: <noreply@activisme.be> | |
Return-Path: <noreply@activisme.be> | |
To: Topairy@gmail.com | |
Subject: =?UTF-8?Q?Activisme=5FBE=20|=20Wacht?==?UTF-8?Q?woord=20re?= =?UTF-8?Q?set?= | |
Reply-To: <noreply@activisme.be> | |
User-Agent: CodeIgniter | |
X-Sender: noreply@activisme.be | |
X-Mailer: CodeIgniter | |
X-Priority: 3 (Normal) | |
Message-ID: <58faad7de0499@activisme.be> | |
Mime-Version: 1.0 | |
Content-Type: multipart/alternative; boundary="B_ALT_58faad7de04a6" | |
This is a multi-part message in MIME format. | |
Your email application may not support this format. | |
--B_ALT_58faad7de04a6 | |
Content-Type: text/plain; charset=UTF-8 | |
Content-Transfer-Encoding: 8bit | |
get reckt | |
--B_ALT_58faad7de04a6 | |
Content-Type: text/html; charset=UTF-8 | |
Content-Transfer-Encoding: quoted-printable | |
get reckt | |
--B_ALT_58faad7de04a6-- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment