-
Notifications
You must be signed in to change notification settings - Fork 71
Trigger Inbound Rules
Igor Balos edited this page Oct 3, 2018
·
3 revisions
Inbound rules allow you to filter out email which is going to be processed. If it matches rules, it can be rejected.
For these API requests you will need to use a server API token. Once you obtain it, you will need to use server API client.
server_token = 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
client = Postmark::ApiClient.new(server_token)
api_client.create_trigger(:inbound_rules, :rule => "example.com")
# => {:rule=>"example.com", :id=>43}
api_client.delete_trigger(:inbound_rules, 42)
# => {:error_code=>0, :message=>"Rule [email protected] removed."}
api_client.triggers(:inbound_rules).take(3)
# => [{:rule=>"example.com", :id=>43}]
For additional information about the capabilities of the Postmark API, see Postmark Developers Documentation.
- Email sending
- Test email sending
- Bounces
- Templates
- Templates push
- Server
- Servers
- Message Streams
- Webhooks
- Messages
- Domains
- Sender Signatures
- Stats
- Trigger Tags
- Suppressions
- Data Removals
- Trigger Inbound Rules
- Parsing Inbound
- Using Postmark with Mail library
- Accessing Postmark Message ID
- Error Handling
- Integration Testing
- Troubleshooting
- Known issues and how to resolve them