{"action":"created","issue":{"url":"https://api.github.com/repos/wildbit/postmark-php/issues/25","repository_url":"https://api.github.com/repos/wildbit/postmark-php","labels_url":"https://api.github.com/repos/wildbit/postmark-php/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/wildbit/postmark-php/issues/25/comments","events_url":"https://api.github.com/repos/wildbit/postmark-php/issues/25/events","html_url":"https://github.com/wildbit/postmark-php/issues/25","id":162326144,"number":25,"title":"Solving SSL issue when using autoload.php","user":{"login":"robinmackenzie","id":15317528,"avatar_url":"https://avatars.githubusercontent.com/u/15317528?v=3","gravatar_id":"","url":"https://api.github.com/users/robinmackenzie","html_url":"https://github.com/robinmackenzie","followers_url":"https://api.github.com/users/robinmackenzie/followers","following_url":"https://api.github.com/users/robinmackenzie/following{/other_user}","gists_url":"https://api.github.com/users/robinmackenzie/gists{/gist_id}","starred_url":"https://api.github.com/users/robinmackenzie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robinmackenzie/subscriptions","organizations_url":"https://api.github.com/users/robinmackenzie/orgs","repos_url":"https://api.github.com/users/robinmackenzie/repos","events_url":"https://api.github.com/users/robinmackenzie/events{/privacy}","received_events_url":"https://api.github.com/users/robinmackenzie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-26T12:41:29Z","updated_at":"2016-06-26T12:50:23Z","closed_at":null,"body":"Instead of using Composer I downloaded the bundle zip (v2.1) and am experiencing an SSL error:\r\n\r\n> exception 'GuzzleHttp\\Exception\\RequestException' with message 'cURL error 60: SSL certificate problem: unable to get local issuer certificate\r\n\r\nFurther to the advice in the wiki (https://github.com/wildbit/postmark-php/wiki/SSL%20Errors%20on%20Windows) I tried to include this line in my php:\r\n\r\n`PostmarkClientBase::$VERIFY_SSL = false;`\r\n\r\nBut because I'm using the autoload.php method (as recommended) the error is now:\r\n\r\n> Fatal error: Class 'PostmarkClientBase' not found\r\n\r\nWhat is the recommended method of combining use of autoload.php and disabling SSL ?"},"comment":{"url":"https://api.github.com/repos/wildbit/postmark-php/issues/comments/228599860","html_url":"https://github.com/wildbit/postmark-php/issues/25#issuecomment-228599860","issue_url":"https://api.github.com/repos/wildbit/postmark-php/issues/25","id":228599860,"user":{"login":"robinmackenzie","id":15317528,"avatar_url":"https://avatars.githubusercontent.com/u/15317528?v=3","gravatar_id":"","url":"https://api.github.com/users/robinmackenzie","html_url":"https://github.com/robinmackenzie","followers_url":"https://api.github.com/users/robinmackenzie/followers","following_url":"https://api.github.com/users/robinmackenzie/following{/other_user}","gists_url":"https://api.github.com/users/robinmackenzie/gists{/gist_id}","starred_url":"https://api.github.com/users/robinmackenzie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robinmackenzie/subscriptions","organizations_url":"https://api.github.com/users/robinmackenzie/orgs","repos_url":"https://api.github.com/users/robinmackenzie/repos","events_url":"https://api.github.com/users/robinmackenzie/events{/privacy}","received_events_url":"https://api.github.com/users/robinmackenzie/received_events","type":"User","site_admin":false},"created_at":"2016-06-26T12:50:23Z","updated_at":"2016-06-26T12:50:23Z","body":"My update (for future reference):\r\n\r\nWhen using the basic sample, the SSL work-around should set the flag on $client e.g.:\r\n\r\n```\r\n$client = new PostmarkClient(\"SECRET_KEY\");\r\n$client::$VERIFY_SSL = false;\r\n$sendResult = $client->sendEmail(\"messenger@somewhere.com\", \r\n  \"somebody@somewhereelse.com\", \r\n  \"Hello from Postmark!\",\r\n  \"This is just a friendly 'hello' from your friends at Postmark.\");\r\n\r\n```\r\n\r\nPerhaps the team might look into updating the wiki page with a clarification for people who are getting started with the basic example, but not using SSL."}}
{"actor":{"display_login":"robinmackenzie"}}