You are here

public function SendInBlueApiInterface::sendEmail in SendinBlue 8

Same name and namespace in other branches
  1. 8.2 src/Tools/Api/SendInBlueApiInterface.php \Drupal\sendinblue\Tools\Api\SendInBlueApiInterface::sendEmail()

Send email via sendinblue.

Parameters

array $to: A recipe email address.

string $subject: A subject of email.

string $html: A html body of email content.

string $text: A text body of email content.

array $from: A sender email address.

array $replyto: A reply address.

array $cc: A cc address.

array $bcc: A bcc address.

array $attachment: A attachment information.

array $headers: A header of email.

Return value

\Drupal\sendinblue\Tools\Model\CreateSmtpEmail An array of response code.

2 methods override SendInBlueApiInterface::sendEmail()
SendinblueApiV2::sendEmail in src/Tools/Api/SendinblueApiV2.php
Send email via sendinblue.
SendinblueApiV3::sendEmail in src/Tools/Api/SendinblueApiV3.php
Send email via sendinblue.

File

src/Tools/Api/SendInBlueApiInterface.php, line 91

Class

SendInBlueApiInterface
Interface for SendInBlue API.

Namespace

Drupal\sendinblue\Tools\Api

Code

public function sendEmail(array $to, string $subject, string $html, string $text, array $from = [], array $replyto = [], array $cc = [], array $bcc = [], array $attachment = [], array $headers = []);