PHP 클래스 Webiny\Component\Mailer\Bridge\Sendgrid\Transport

상속: implements Webiny\Component\Mailer\Bridge\TransportInterface
파일 보기 프로젝트 열기: Webiny/Framework

공개 메소드들

메소드 설명
__construct ( ConfigObject $config ) Base constructor.
send ( Webiny\Component\Mailer\MessageInterface $message, array | null &$failures = null ) : boolean | integer Sends the message.
setDecorators ( array $replacements ) Decorators are arrays that contain keys and values. The message body and subject will be scanned for the keys, and, where found, the key will be replaced with the value.

메소드 상세

__construct() 공개 메소드

In the base constructor the bridge gets the mailer configuration.
public __construct ( ConfigObject $config )
$config Webiny\Component\Config\ConfigObject The base configuration.

send() 공개 메소드

Sends the message.
public send ( Webiny\Component\Mailer\MessageInterface $message, array | null &$failures = null ) : boolean | integer
$message Webiny\Component\Mailer\MessageInterface Message you want to send.
$failures array | null To this array failed addresses will be stored.
리턴 boolean | integer Number of success sends, or bool FALSE if sending failed.

setDecorators() 공개 메소드

Decorators are arrays that contain keys and values. The message body and subject will be scanned for the keys, and, where found, the key will be replaced with the value.
public setDecorators ( array $replacements )
$replacements array Array [email=> [key1=>value1, key2=>value2], email2=>[...]].