All notable changes to this project will be documented in this file.
- Send mail fails with BadRequest when apostrophe used in sender name: sendgrid#232
- Async broken in library, causing deadlocks and responses not returning in non-console apps: sendgrid#235
- Hard-coded subject in mail helper: sendgrid#234
- Thanks digime99!
- Breaking change to support the v3 Web API
- New HTTP client
- v3 Mail Send helper
- Implemented the global stats /asm/stats endpoint [GET]
- Implemented the global suppressions /asm/suppressions/global endpoint [GET, POST, DELETE]
- Implemented the suppressions /asm/groups/:group_id/suppressions endpoint [GET, POST, DELETE]
- Implemented the unsubscribe groups /asm/groups endpoint [GET, POST, DELETE]
- Send emails using API Key
- Added support for using the Web API v3 endpoints
- Implemented the api_keys endpoint [GET, POST, PATCH, DELETE]
- Added support for sending via API keys in addition to credentials. Pass an API Key string to the Web transport constructor
- Fixed the endpoint URL. (⌒_⌒;)
The only breaking change in this release is the removal of the non-async Deliver method. All other changes are backwards compatible.
- AddSection() method for SMTP API substitution sections (thanks @awwa)
- EmbedStreamImage() to embed directly from a memory stream with no disk i/o (thanks @twilly86)
- SendToSink bool that when true will send all emails to the test sink (thanks @lukasz-lysik)
- SetSendAt() and SetSendEachAt() methods for scheduled sends
- SetIpPool() method for using IP pools
- SetAsmGroupId() method for using suppression groups
- Refactored error handling (thanks @HowardvanRooijen)
- Removed non-async Deliver() method as it was mixing sync and async code.
- Invalid Protocol Exception in Mono due to the way the endpoint URL was being assigned (thanks @mdymel, @rbarinov)
- Connections were not being reused. This was causing degraded performance with multiple threads open. Performance should be much better. (with help from @gatesvp)
- This changelog.
Web
transport constructor that accepts aTimeSpan
to specify HTTP timeout- Null values in header will now result in a
ArgumentNullException
- Updated to SendGrid.SmtpApi 1.2.0, which means Unicode in header values will work properly.
- Removed redundant status code check that was throwing unhelpful errors
- Unicode in header values will now work properly