You are here

public function SendinblueApiV3::getSmtpDetails in SendinBlue 7.2

Get the details of smtp.

Return value

GetSmtpDetails A smtp details.

Overrides SendInBlueApiInterface::getSmtpDetails

File

includes/Api/SendinblueApiV3.php, line 312

Class

SendinblueApiV3
Sendinblue REST client.

Code

public function getSmtpDetails() {
  $smtpDetails = $this->sibAccountApi
    ->getAccount()
    ->getRelay();
  return new GetSmtpDetails($smtpDetails
    ->getData()
    ->getUserName(), $smtpDetails
    ->getData()
    ->getRelay(), $smtpDetails
    ->getData()
    ->getPort(), (bool) $smtpDetails
    ->getEnabled());
}