added outlook mail support
This commit is contained in:
@@ -201,6 +201,18 @@ class Inbox extends Component
|
||||
return redirect()->route('dashboard.premium');
|
||||
}
|
||||
|
||||
public function outlook() {
|
||||
if (!$this->checkEmailLimit()) {
|
||||
return $this->showAlert('error', __('You have reached daily limit of maximum ') . $this->email_limit . __(' temp mail addresses.'));
|
||||
}
|
||||
if ($this->premium) {
|
||||
$this->email = Premium::generateRandomOutlook();
|
||||
} else {
|
||||
$this->email = ZEmail::generateRandomOutlook();
|
||||
}
|
||||
return redirect()->route('dashboard.premium');
|
||||
}
|
||||
|
||||
public function deleteEmail()
|
||||
{
|
||||
return redirect()->route('deleteP', ['email' => $this->email]);
|
||||
|
||||
@@ -59,6 +59,14 @@ class Action extends Component
|
||||
return redirect()->route('mailbox');
|
||||
}
|
||||
|
||||
public function outlook() {
|
||||
if (!$this->checkEmailLimit()) {
|
||||
return $this->showAlert('error', __('You have reached daily limit of maximum ') . json_decode(config('app.settings.configuration_settings'))->email_limit . __(' temp mail addresses.'));
|
||||
}
|
||||
$this->email = ZEmail::generateRandomOutlook();
|
||||
return redirect()->route('mailbox');
|
||||
}
|
||||
|
||||
public function deleteEmail()
|
||||
{
|
||||
return redirect()->route('delete', ['email' => $this->email]);
|
||||
|
||||
Reference in New Issue
Block a user