sendgrid/sendgrid-php — pull request #5 by theycallmeswift (2012-06-05 22:05:24+00:00)
Title: Add optional from name and reply-to fields to web and smtp API calls

Added optional `fromname` and `repyto` fields for both Web and SMTP. (This is fixes #3 and #4, and partially closes #2).

Usage:

$mail = new SendGrid\Mail();

$mail->addTo('john.doe@sendgrid.com')->
setReplyTo('swift@sendgrid.com')->
setFrom('me@bar.com')->
setFromName('Swift')->
setSubject('Subject goes here')->
setText('Hello World!');