-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for configurable api endpoint
- Loading branch information
1 parent
0be20ae
commit dce092e
Showing
5 changed files
with
20 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,16 +38,17 @@ You can establish values for a number of SparkPost settings in the initializer. | |
|
||
```ruby | ||
SparkPostRails.configure do |c| | ||
c.sandbox = true # default: false | ||
c.track_opens = true # default: false | ||
c.track_clicks = true # default: false | ||
c.return_path = '[email protected]' # default: nil | ||
c.campaign_id = 'YOUR-CAMPAIGN' # default: nil | ||
c.transactional = true # default: false | ||
c.ip_pool = "MY-POOL" # default: nil | ||
c.inline_css = true # default: false | ||
c.html_content_only = true # default: false | ||
c.subaccount = "123" # default: nil | ||
c.api_endpoint = "https://api.eu.sparkpost.com/api/" # default: "https://api.sparkpost.com/api/" | ||
c.sandbox = true # default: false | ||
c.track_opens = true # default: false | ||
c.track_clicks = true # default: false | ||
c.return_path = '[email protected]' # default: nil | ||
c.campaign_id = 'YOUR-CAMPAIGN' # default: nil | ||
c.transactional = true # default: false | ||
c.ip_pool = "MY-POOL" # default: nil | ||
c.inline_css = true # default: false | ||
c.html_content_only = true # default: false | ||
c.subaccount = "123" # default: nil | ||
end | ||
``` | ||
|
||
|
@@ -82,6 +83,7 @@ If you are using `ActiveJob` and wish to do something special when the SparkPost | |
```ruby | ||
ActionMailer::DeliveryJob.rescue_from(SparkPostRails::DeliveryException) do |exception| | ||
# do something special with the error | ||
# do something special with the error | ||
end | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters