Mailgun
Interact with the Mailgun API using SQL Server
- Signup and Obtain an API Key for your domain from Mailgun
- Create the stored procedures documented below
- Execute the following SQL statement:
1 2 3 4 5 |
EXEC usp_Mailgun_Auth_Init @Profile = 'enter-profile-name-of-your-choosing', @APIKey = 'enter your API Key here', @Domain = 'enter your domain here' |
1 2 3 4 5 6 7 8 9 10 |
CREATE PROCEDURE usp_Mailgun_Auth_Init( @Profile nvarchar(100), @APIKey varchar(100), @Domain varchar(100)) AS EXEC SQLHTTP.net.AuthParamSet @Profile = @Profile, @Name = 'APIKey', @Value = @APIKey EXEC SQLHTTP.net.AuthParamSet @Profile = @Profile, @Name = 'Domain', @Value = @Domain GO |
- Bounce – Create
- Bounce – Delete
- Bounce – Fetch
- Bounce List – Delete
- Bounces – Fetch
- Complaint – Create
- Complaint – Delete
- Complaint – Fetch
- Complaints – Fetch
- Event Stats – Fetch
- Events – Fetch
- Mailing List – Create
- Mailing List – Delete
- Mailing List – Fetch
- Mailing List – Update
- Mailing List Member – Create
- Mailing List Member – Delete
- Mailing List Member – Update
- Mailing List Members – Create
- Mailing List Members – Fetch
- Mailing Lists – Fetch
- Tag – Fetch
- Tags – Fetch
- Text Message – Send
- Unsubscribe – Create
- Unsubscribe – Delete
- Unsubscribe – Fetch
- Unsubscribes – Fetch
- Webhook – Create
- Webhook – Delete
- Webhook – Fetch
- Webhook – Update
- Webhooks – Fetch
IMPORTANT DISCLAIMER
CODE/SQL ON THESE PAGES ARE PROVIDED AS-IS AND ARE AVAILABLE FOR ILLUSTRATIVE PURPOSES ONLY.
USERS ARE REQUIRED TO ABIDE BY THE TERMS AND CONDITIONS FOR USING REFERENCED THIRD PARTY WEBSITES AND/OR APIs FROM THEIR RESPECTIVE WEBSITES. WE DO NOT CONDONE ANY VIOLATION OF THIRD PARTY WEBSITES AND/OR APIs TERMS AND CONDITIONS USING OUR SOFTWARE.
USERS SHALL BE SOLELY RESPONSIBLE AND BE SOLELY LIABLE FOR VIOLATION OF ANY RULES SPECIFIED BY THIRD PARTIES FOR USING THEIR WEBSITES AND/OR APIs, OR INFRINGEMENT OF RIGHTS OF SUCH THIRD PARTIES.