OpenBuildings / postmark

Postmark transport for Swift Mailer
https://github.com/OpenBuildings/postmark
BSD 3-Clause "New" or "Revised" License
16 stars 8 forks source link

Use https:// protocol for Postmark API #15

Closed hkdobrev closed 10 years ago

hkdobrev commented 10 years ago

This introduces these new methods:

They could be used to get/set the secure flag and get the send URI based on that flag.

The new default is to use the https:// protocol for the Postmark API.

You could use the previous default http:// with:

$transport = Swift_PostmarkTransport::newInstance('your api key');
$transport->api()->set_secure(false);

Resolves #7.

hkdobrev commented 10 years ago

@jaketoolson Since you are the one who suggested #7, what do you think about that?

hkdobrev commented 10 years ago

Updated the interface with better naming.

/cc @dkyosev

dkyosev commented 10 years ago

LGTM