Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions USE_CASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -1100,6 +1100,8 @@ use SendGrid\Mail\Mail;
use SendGrid\Mail\Personalization;
use SendGrid\Mail\Subject;
use SendGrid\Mail\To;
use SendGrid\Mail\PlainTextContent;
use SendGrid\Mail\HtmlContent;

$from = new From("test@example.com", "Twilio Sendgrid");
$to = new To(
Expand Down Expand Up @@ -1157,10 +1159,10 @@ $personalization1->addTo(new To(
"Example User5 -name-"
));
$personalization1->addFrom(new From(
"test5@example.com" => "Twilio"
"test5@example.com", "Twilio"
))
$personalization1->setSubject(new Subject("Hello from Twilio!"));
$mail->addPersonalization($personalization1);
$email->addPersonalization($personalization1);

$sendgrid = new \SendGrid(getenv('SENDGRID_API_KEY'));
try {
Expand Down