Uses:
curl/7.51.0
PHP/5.6.29
Use real:
$key = 'SG.ewqq22***';
$to = '[email protected]';
$to_name = 'Nastia';
$from = '[email protected]';
$from_name = 'support';
$title = 'Заголовок';
$body = 'Текст сообщения';
new SendGrid\Client($key, false, $to, $to_name, $from, $from_name, $title, $body);
Use test:
$key = 'SG.ewqq22***';
new SendGrid\Client($key, true);