Skip to content

Commit

Permalink
Merge pull request #575 from manfordbenjamin/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
thinkingserious committed Mar 24, 2018
2 parents 51377ea + 2e1046d commit c6c77a2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ $from = new SendGrid\Email("Example User", "test@example.com");
$subject = "Sending with SendGrid is Fun";
$to = new SendGrid\Email("Example User", "test@example.com");
$content = new SendGrid\Content("text/plain", "and easy to do anywhere, even with PHP");

// Send message as html
// $content = new SendGrid\Content("text/html", "<h1>Sending with SendGrid is Fun and easy to do anywhere, even with PHP</h1>");

$mail = new SendGrid\Mail($from, $subject, $to, $content);

$apiKey = getenv('SENDGRID_API_KEY');
Expand Down

0 comments on commit c6c77a2

Please sign in to comment.