Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to send 1.4MB PDF due to not being able to pass configurations to the HTTP adapter #106

Closed
RStrydom opened this issue May 13, 2016 · 1 comment

Comments

@RStrydom
Copy link

We have recently hit a roadblock not being able to send PDFs as attachments as we kept hitting the time-out of CURL - set to a default of 10 seconds. We tried setting the time-out to something else but it never seemed to work and always used the 10 seconds. After some investigation we realised that the configuration of the HTTP adapter is not passed through when instantiating a new instance of Sparkpost.
We are currently setting up a pull request to fix this issue although this does depend on the use of Ivory and would probably not be applicable when Sparkpost moves over to httplug.

@RStrydom
Copy link
Author

Haven't gotten the time yet to roll the pull request - for anyone that has this issue and needs to resolve this urgently, see the change we made below (This change fails on the unit tests)
Edit: vendor/sparkpost/php-sparkpost/lib/SparkPost/SparkPost.php
Line: 99
$httpConfig = ($this->httpAdapter->getConfiguration()) ? $this->httpAdapter->getConfiguration() : new Configuration();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant