Znarkus / postmark-php

Postmark PHP class
http://developer.postmarkapp.com/developer-libs.html#php-5
139 stars 49 forks source link

Optionally use http instead of https #7

Closed jboesch closed 13 years ago

jboesch commented 13 years ago

Would it be possible to have a constant to say whether or not to use http or https?

Znarkus commented 13 years ago

Why would you want that, if I may ask?

jboesch commented 13 years ago

I was getting errors on my server for not finding the certificate info, even though I had the Certificate folder from the download. It was throwing exceptions about the certificate and looking in /etc/ssl or something... I wasn't sure what to do so I just stripped out the curl info that did SSL and removed the "s" from "https".

jboesch commented 13 years ago

Also, if the API gives you the option to do http or https (http://developer.postmarkapp.com/developer-build.html) then I think this lib should as well.

Don't get me wrong, I'm very grateful for all the work that has been done it :)

Znarkus commented 13 years ago

I'm sorry but I must disagree. If I would to add this option, it will encourage people not to use SSL. Just because it saves them a couple of minutes in initial setup.

I recommend you to try to fix the problem you were having, instead of disabling secure transfers of the e-mail. If you give me a little more detail, I'd be happy to help you out.