diff --git a/source/API_Reference/SMTP_API/scheduling_parameters.md b/source/API_Reference/SMTP_API/scheduling_parameters.md index aed297d69f..5d9ccea0c3 100644 --- a/source/API_Reference/SMTP_API/scheduling_parameters.md +++ b/source/API_Reference/SMTP_API/scheduling_parameters.md @@ -6,11 +6,11 @@ navigation: show: true --- -With scheduling you can send large volumes of email in queued batches or target individual recipients by specifying custom UNIX timestamp parameter. -Using the parameters defined below, you can queue batches of emails targeting individual recipients. +With scheduling you can send large volumes of email in queued batches or target individual recipients by specifying custom UNIX timestamp parameter. +Using the parameters defined below, you can queue batches of emails targeting individual recipients. -This parameter allows SendGrid to begin processing a customer’s email requests before sending. SendGrid will then queue those messages and release -them when the timestamp is exceeded. This technique allows for a more efficient way to distribute large email requests and can **improve overall mail delivery time** +This parameter allows SendGrid to begin processing a customer’s email requests before sending. SendGrid will then queue those messages and release +them when the timestamp is exceeded. This technique allows for a more efficient way to distribute large email requests and can **improve overall mail delivery time** performance. This functionality: * Improves efficiency of processing and distributing large volumes of email. @@ -29,8 +29,8 @@ Using both `send_at` and `send_each_at` is not valid and will cause your request {% anchor h2 %} Send At -{% endanchor %} - +{% endanchor %} + To schedule a send request for a large batch of emails use the `send_at` parameter which will send all emails at approximately the same time. `send_at` is a [UNIX timestamp](https://en.wikipedia.org/wiki/Unix_time).

Example of send_at email header

@@ -42,8 +42,8 @@ To schedule a send request for a large batch of emails use the `send_at` paramet {% anchor h2 %} Send Each At -{% endanchor %} - +{% endanchor %} + To schedule a send request for individual recipients; use `send_each_at` to send emails to each recipient at the specified time. `send_each_at` is a sequence of UNIX timestamps, provided as an array. There must be one timestamp per email you wish to send.

Example of send_each_at email header

@@ -61,20 +61,3 @@ To schedule a send request for individual recipients; use `send_each_at` to send ] } {% endcodeblock %} - -To allow for the cancellation of a scheduled send, you must include a batch id with your send. The endpoint for cancellation needs a batch id to cancel with. To generate a valid batch id, use the batch id generation endpoint - -

Example of including a batch_id

-{% codeblock lang:json %} -{ - "to": [ - "", - "john@example.com", - "mike@example.com" - ], - "send_at": [ - 1409348513 - ], - "batch_id": "MWQxZmIyODYtNjE1Ni0xMWU1LWI3ZTUtMDgwMDI3OGJkMmY2LWEzMmViMjYxMw" -} -{% endcodeblock %} diff --git a/source/Integrate/Code_Examples/csharp.md b/source/Integrate/Code_Examples/csharp.md index 9b106db1d4..d73a4ea9db 100644 --- a/source/Integrate/Code_Examples/csharp.md +++ b/source/Integrate/Code_Examples/csharp.md @@ -28,6 +28,8 @@ mail.Text = "and easy to do anywhere, even with C#"; var credentials = new NetworkCredential(api_user, api_key); var transportWeb = new Web(credentials); transportWeb.DeliverAsync(mail); +// If developing a Console Application, use the following +// transportWeb.DeliverAsync(mail).Wait(); {% endcodeblock %} {% anchor h2 %}