set('mail.mailers.smtp.host', $this->mail_host); config()->set('mail.mailers.smtp.port', $this->mail_port); config()->set('mail.mailers.smtp.encryption', $this->mail_encryption); config()->set('mail.mailers.smtp.username', $this->mail_username); config()->set('mail.mailers.smtp.password', $this->mail_password); config()->set('mail.from.address', $this->mail_from_address); config()->set('mail.from.name', $this->mail_from_name); } catch (\Exception) { } } /** * Summary of optionTypes * Only used for the settings page * @return array>> */ public static function getOptionInputData() { return [ 'mail_host' => [ 'label' => 'Mail Host', 'type' => 'string', 'description' => 'The host of your mail server.', ], 'mail_port' => [ 'label' => 'Mail Port', 'type' => 'int', 'description' => 'The port of your mail server.', ], 'mail_username' => [ 'label' => 'Mail Username', 'type' => 'string', 'description' => 'The username of your mail server.', ], 'mail_password' => [ 'label' => 'Mail Password', 'type' => 'string', 'description' => 'The password of your mail server.', ], 'mail_encryption' => [ 'label' => 'Mail Encryption', 'type' => 'string', 'description' => 'The encryption of your mail server.', ], 'mail_from_address' => [ 'label' => 'Mail From Address', 'type' => 'string', 'description' => 'The from address of your mail server.', ], 'mail_from_name' => [ 'label' => 'Mail From Name', 'type' => 'string', 'description' => 'The from name of your mail server.', ], 'mail_mailer' => [ 'label' => 'Mail Mailer', 'type' => 'string', 'description' => 'The mailer of your mail server.', ], 'mail_enabled' => [ 'label' => 'Mail Enabled', 'type' => 'boolean', ], ]; } }