Sailthru-client gem


I'm trying to set up Sailthru but get this error when I try to use it (get_email method):

Sailthru::SailthruClientException: Unable to open stream:

I'm running the app locally, so do I have to do anything in particular to open an external stream?

Does the url open if you enter it into your browser?




Sorry that was my one an only (and useless) idea.


Hmm, do you think it could have anything to do with SSL?

if I use this code and manually insert the uri that the sailthru.get_email method is generating is comes back with a response.

require "net/https" require "uri"

uri = URI.parse(" | Empowering Partners & Consumers) http =, uri.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request =

response = http.request(request) response.body response.status response["header-here"] # All headers are lowercase

Please post the full error you are getting. Since you can open this link via browser and net/http library there is something else going on and no one can tell what it is from this truncated error message.


how to send multiple email in sailthru…please anyone help me