sendgrid-go | The Official Twilio SendGrid Golang API Library | Email library

 by   sendgrid Go Version: v3.12.0 License: MIT

kandi X-RAY | sendgrid-go Summary

kandi X-RAY | sendgrid-go Summary

sendgrid-go is a Go library typically used in Messaging, Email, React, Nodejs, Twilio applications. sendgrid-go has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

NEW: Subscribe to email notifications for releases and breaking changes. Version 3.X.X of this library provides full support for all Twilio SendGrid Web API v3 endpoints, including the new v3 /mail/send. This library represents the beginning of a new path for Twilio SendGrid. We want this library to be community driven and Twilio SendGrid led. We need your help to realize this goal. To help make sure we are building the right things in the right order, we ask that you create issues and pull requests or simply upvote or comment on existing issues or pull requests. Please browse the rest of this README for further detail.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              sendgrid-go has a medium active ecosystem.
              It has 888 star(s) with 255 fork(s). There are 204 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              sendgrid-go has no issues reported. On average issues are closed in 762 days. There are 7 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of sendgrid-go is v3.12.0

            kandi-Quality Quality

              sendgrid-go has 0 bugs and 0 code smells.

            kandi-Security Security

              sendgrid-go has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              sendgrid-go code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              sendgrid-go is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              sendgrid-go releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.
              It has 10064 lines of code, 729 functions and 39 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of sendgrid-go
            Get all kandi verified functions for this library.

            sendgrid-go Key Features

            No Key Features are available at this moment for sendgrid-go.

            sendgrid-go Examples and Code Snippets

            No Code Snippets are available at this moment for sendgrid-go.

            Community Discussions

            QUESTION

            Unable to cancel scheduled SendGrid email (with batch_id)
            Asked 2022-Mar-14 at 00:24

            Using SendGrid to schedule an email, but then I cancel it right away and delete (looking at scheduled_events shows that status is in fact canceled). However, e-mail is still delievered to user.

            I know it says "You can cancel or pause all of the mail/send requests associated with a batch ID up to 10 minutes before the scheduled send time by passing a batch_id to the "Cancel or pause a scheduled send" endpoint." (https://docs.sendgrid.com/api-reference/cancel-scheduled-sends/delete-a-cancellation-or-pause-from-a-scheduled-send)

            But in this example code I have the time set to 20 minutes, and also tried it for 90 minutes and more and the emails was still delivered. Lastly, I tried doing the same with and without deleting the email (request4).

            I contacted their support, but haven't received a response yet, and was wondering if I am doing something out of the ordinary or wrong here.

            BTW, I checked the status code and responses - they all seem fine (added comments describing the printed out statuses)

            Thanks

            ...

            ANSWER

            Answered 2022-Mar-14 at 00:24

            When you send emails in a batch, you are able to cancel those emails by cancelling the batch. However, I think what you are doing here is cancelling the cancellation by deleting the batch.

            From the docs:

            When a batch is canceled, all messages associated with that batch will stay in your sending queue. When their send_at value is reached, they will be discarded.

            When a batch is paused, all messages associated with that batch will stay in your sending queue, even after their send_at value has passed. This means you can remove a pause status, and your scheduled send will be delivered once the pause is removed. Any messages left with a pause status that are more than 72 hours old will be discarded as Expired.

            The batch holds the cancelled/paused status but the messages remain in the queue. If you delete the batch, then the messages are still in the queue and no longer know that they are cancelled.

            To fix this, I believe you need to stop your above code at your 3rd request. Do not perform request 4 (deleting the batch) and your messages should fail to send as required.

            Source https://stackoverflow.com/questions/71461746

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install sendgrid-go

            Update the development environment with your SENDGRID_API_KEY, for example:.

            Support

            This library supports the following Go implementations:.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/sendgrid/sendgrid-go.git

          • CLI

            gh repo clone sendgrid/sendgrid-go

          • sshUrl

            git@github.com:sendgrid/sendgrid-go.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Email Libraries

            PHPMailer

            by PHPMailer

            nodemailer

            by nodemailer

            mjml

            by mjmlio

            Mailspring

            by Foundry376

            postal

            by postalserver

            Try Top Libraries by sendgrid

            sendgrid-nodejs

            by sendgridJavaScript

            sendgrid-python

            by sendgridPython

            sendgrid-php

            by sendgridPHP

            sendgrid-csharp

            by sendgridC#

            email-templates

            by sendgridHTML