| @@ 129-143 (lines=15) @@ | ||
| 126 | * |
|
| 127 | * @return bool |
|
| 128 | */ |
|
| 129 | public function enableDkim() |
|
| 130 | { |
|
| 131 | try { |
|
| 132 | $this->sesClient->setIdentityDkimEnabled( |
|
| 133 | [ |
|
| 134 | 'DkimEnabled' => true, |
|
| 135 | 'Identity' => $this->identity->getIdentity(), |
|
| 136 | ] |
|
| 137 | ); |
|
| 138 | ||
| 139 | return true; |
|
| 140 | } catch (\Exception $e) { |
|
| 141 | return false; |
|
| 142 | } |
|
| 143 | } |
|
| 144 | ||
| 145 | /** |
|
| 146 | * Request AWS To disable DKIM |
|
| @@ 150-164 (lines=15) @@ | ||
| 147 | * |
|
| 148 | * @return bool |
|
| 149 | */ |
|
| 150 | public function disableDkim() |
|
| 151 | { |
|
| 152 | try { |
|
| 153 | $this->sesClient->setIdentityDkimEnabled( |
|
| 154 | [ |
|
| 155 | 'DkimEnabled' => false, |
|
| 156 | 'Identity' => $this->identity->getIdentity(), |
|
| 157 | ] |
|
| 158 | ); |
|
| 159 | ||
| 160 | return true; |
|
| 161 | } catch (\Exception $e) { |
|
| 162 | return false; |
|
| 163 | } |
|
| 164 | } |
|
| 165 | } |
|
| 166 | ||