You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My rails web application runs behind a corporate firewall which doesn't allow direct internet access. The usual tools like apt, curl are just working fine by setting the environment variable "http_proxy" and "https_proxy".
The rails application uses "sendgrid-ruby" gem to send emails, unfortunately the application doesn't respect the "http_proxy" variable and always tries to send the emails by directly connecting to the internet. which eventually fails due to no direct internet connections are allowed.
I would like to know, Is there a way to use the proxy servers to send emails using SendGrid API.
I have searched on other SendGrid packages and could relate to the following issues:
Is there a similar solution exists for SendGrid-ruby library?
Steps to Reproduce
Disconnect direct internet access from the server.
Setup a working portforward/proxy server and set "http_proxy" and "https_proxy" environment variables using "/etc/environment" and source it to the current shell.
Try sending email using SendGrid API.
Now you will be able to see that mail sending failed in either stdout/stderr or the log file.
Issue Summary
My rails web application runs behind a corporate firewall which doesn't allow direct internet access. The usual tools like apt, curl are just working fine by setting the environment variable "http_proxy" and "https_proxy".
The rails application uses "sendgrid-ruby" gem to send emails, unfortunately the application doesn't respect the "http_proxy" variable and always tries to send the emails by directly connecting to the internet. which eventually fails due to no direct internet connections are allowed.
I would like to know, Is there a way to use the proxy servers to send emails using SendGrid API.
I have searched on other SendGrid packages and could relate to the following issues:
Java Example:
sendgrid/sendgrid-java#138
sendgrid/sendgrid-java#182
CSharp Example:
sendgrid/sendgrid-csharp#197
Is there a similar solution exists for SendGrid-ruby library?
Steps to Reproduce
Technical details:
The text was updated successfully, but these errors were encountered: