mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 00:18:25 +00:00
composer
This commit is contained in:
parent
1551de729b
commit
2af4ef705d
1 changed files with 2 additions and 2 deletions
|
|
@ -489,7 +489,7 @@ class Messaging extends Action
|
|||
|
||||
return match ($provider->getAttribute('provider')) {
|
||||
'mock' => new Mock('username', 'password'),
|
||||
'twilio' => new Twilio($credentials['accountSid'] ?? 'accountSid' , $credentials['authToken'] ?? 'authToken', null, $credentials['messagingServiceSid'] ?? null),
|
||||
'twilio' => new Twilio($credentials['accountSid'] ?? 'accountSid', $credentials['authToken'] ?? 'authToken', null, $credentials['messagingServiceSid'] ?? null),
|
||||
'textmagic' => new TextMagic($credentials['username'] ?? 'username', $credentials['apiKey'] ?? 'apiKey'),
|
||||
'telesign' => new Telesign($credentials['customerId'] ?? 'customerId', $credentials['apiKey'] ?? 'apiKey'),
|
||||
'msg91' => new Msg91($credentials['senderId'] ?? 'senderId', $credentials['authKey'] ?? 'authKey', $credentials['templateId'] ?? 'templateId'),
|
||||
|
|
@ -526,7 +526,7 @@ class Messaging extends Action
|
|||
'mock' => new Mock('username', 'password'),
|
||||
'smtp' => new SMTP(
|
||||
$credentials['host'] ?? 'host',
|
||||
$credentials['port'] ?? 25 ,
|
||||
$credentials['port'] ?? 25,
|
||||
$credentials['username'] ?? 'username',
|
||||
$credentials['password'] ?? 'password',
|
||||
$options['encryption'] ?? 'encryption',
|
||||
|
|
|
|||
Loading…
Reference in a new issue