GithubHelp home page GithubHelp logo

resend / resend-examples Goto Github PK

View Code? Open in Web Editor NEW
74.0 74.0 6.0 1.17 MB

Resend examples

Home Page: https://resend.com/docs

License: MIT License

TypeScript 67.14% JavaScript 27.90% Dockerfile 0.57% Ruby 1.85% Python 2.54%

resend-examples's People

Contributors

bukinoshita avatar dependabot[bot] avatar drish avatar jayanratna avatar lordelogos avatar renovate[bot] avatar vcapretz avatar zenorocha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

resend-examples's Issues

Sending ICS files

I'm facing issues sending ics files via resend api. The email contains the file but it is not possible to open it, for me it looks like that the file included in the email is in bytes.

when using the following query

  "from": "noreply <[email protected]>",
  "to": [
    "[email protected]"
  ],
  "subject": "hello world",
  "text": "it works! with ics",
  "headers": {
    "X-Entity-Ref-ID": "123"
  },
  "attachments": [
    {
      "filename": "meeting.ics",
      "content": "
        BEGIN:VCALENDAR\n
        VERSION:2.0\n
        BEGIN:VEVENT\n
        SUMMARY:MyMeeting\n
        DESCRIPTION:Github\n
        LOCATION:\n
        DTSTART:20230907T130736Z\n
        DTEND:20230907T132236Z\n
        ORGANIZER;CN=Erik:mailto:[email protected]\n
        ATTENDEE;CN=Erik;ROLE=REQ-PARTICIPANT:mailto:[email protected]\n
        BEGIN:VALARM\n
        TRIGGER:-PT15M\n
        ACTION:DISPLAY\n
        DESCRIPTION:Reminder\n
        END:VALARM\n
        END:VEVENT\n
        END:VCALENDAR\n"
    }
  ]
}

Content-Type header throwing error

When viewing the example with iCal attachment here:

...with-ical/src/pages/api/send.ts

line 21 shows the Content-Type header being set:

image

However, when I run I am getting an error saying { data: null, error: { statusCode: 500, message: "Duplicate header 'Content-Type'.", name: 'application_error' } }
Any reason that might be? Sending without specifying this Content-Type header is related to this issue, I believe: resend/resend-node#198

Example with Rust

There should be an example of using resend in a Rust-based application. I suggest we use Actix web, Axum, etc. If this works, I would like to create the application and write an article about it.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): update ruby docker tag to v3.3.4
  • fix(deps): update dependency @react-email/render to v0.0.17
  • fix(deps): update dependency nodemailer to v6.9.14
  • chore(deps): update dependency eslint to v8.57.0
  • chore(deps): update dependency prettier to v3.3.3
  • fix(deps): update dependency @supabase/supabase-js to v2.45.1
  • fix(deps): update dependency ical-generator to v7.2.0
  • fix(deps): update dependency resend to v3.5.0
  • chore(deps): update dependency eslint to v9
  • chore(deps): update typescript-eslint monorepo to v8 (major) (@typescript-eslint/eslint-plugin, @typescript-eslint/parser)
  • fix(deps): update dependency uuid to v10 (uuid, @types/uuid)
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

bundler
with-sinatra/Gemfile
  • resend undefined
  • sinatra undefined
  • puma undefined
docker-compose
with-sinatra/docker-compose.yaml
dockerfile
with-sinatra/Dockerfile
  • ruby 3.3.0
npm
with-attachments-content/package.json
with-attachments/package.json
  • next 14.1.1
  • react 18.2.0
  • react-dom 18.2.0
  • @types/node 20.11.20
  • @types/react 18.2.61
  • @types/react-dom 18.2.19
  • @typescript-eslint/eslint-plugin 7.1.0
  • eslint 8.56.0
  • eslint-config-next 14.1.1
  • prettier 3.2.5
  • typescript 5.3.3
with-domains/package.json
  • dotenv ^16.0.3
  • next 14.1.1
  • react 18.2.0
  • react-dom 18.2.0
  • @types/node 20.11.20
  • @types/react 18.2.61
  • @types/react-dom 18.2.19
  • @typescript-eslint/eslint-plugin 7.1.0
  • eslint 8.56.0
  • eslint-config-next 14.1.1
  • prettier 3.2.5
  • typescript 5.3.3
with-express-react-email/package.json
  • @react-email/render 0.0.12
  • express 4.18.3
  • resend 3.2.0
  • @babel/cli 7.23.9
  • @babel/core 7.23.9
  • @babel/preset-env 7.23.9
  • @babel/preset-react 7.23.3
  • @typescript-eslint/eslint-plugin 7.1.0
  • @typescript-eslint/parser 7.1.0
  • eslint 8.56.0
  • prettier 3.2.5
  • typescript 5.3.3
with-express-react-email/transactional/package.json
with-ical/package.json
  • ical-generator 7.1.0
  • next 14.1.1
  • react 18.2.0
  • react-dom 18.2.0
  • resend 3.4.0
  • @types/node 20.11.20
  • @types/react 18.2.61
  • @types/react-dom 18.2.19
  • @typescript-eslint/eslint-plugin 7.1.0
  • eslint 8.56.0
  • eslint-config-next 14.1.1
  • prettier 3.2.5
  • typescript 5.3.3
with-nextauth/package.json
  • @next-auth/supabase-adapter 0.2.1
  • @supabase/supabase-js 2.39.7
  • jsonwebtoken 9.0.2
  • next 14.1.1
  • next-auth 4.24.6
  • nodemailer 6.9.11
  • react 18.2.0
  • react-dom 18.2.0
  • @types/jsonwebtoken 9.0.6
  • @types/node 20.11.20
  • @types/react 18.2.61
  • @types/react-dom 18.2.19
  • @typescript-eslint/eslint-plugin 7.1.0
  • eslint 8.56.0
  • eslint-config-next 14.1.1
  • prettier 3.2.5
  • typescript 5.3.3
with-prevent-thread-on-gmail/package.json
  • next 14.1.1
  • react 18.2.0
  • react-dom 18.2.0
  • uuid 9.0.1
  • @types/node 20.11.20
  • @types/react 18.2.61
  • @types/react-dom 18.2.19
  • @types/uuid 9.0.8
  • @typescript-eslint/eslint-plugin 7.1.0
  • eslint 8.56.0
  • eslint-config-next 14.1.1
  • prettier 3.2.5
  • typescript 5.3.3
with-react-email/package.json
  • next 14.1.1
  • react 18.2.0
  • react-dom 18.2.0
  • @types/node 20.11.20
  • @types/react 18.2.61
  • @types/react-dom 18.2.19
  • @typescript-eslint/eslint-plugin 7.1.0
  • eslint 8.56.0
  • eslint-config-next 14.1.1
  • prettier 3.2.5
  • typescript 5.3.3
with-react-email/transactional/package.json
with-unsubscribe-url-header/package.json
  • next 14.1.1
  • react 18.2.0
  • react-dom 18.2.0
  • @types/node 20.11.20
  • @types/react 18.2.61
  • @types/react-dom 18.2.19
  • @typescript-eslint/eslint-plugin 7.1.0
  • eslint 8.56.0
  • eslint-config-next 14.1.1
  • prettier 3.2.5
  • typescript 5.3.3
with-webhooks/package.json
  • micro 10.0.1
  • next 14.1.1
  • react 18.2.0
  • react-dom 18.2.0
  • slack-notify 2.0.7
  • svix 1.20.0
  • @types/node 20.11.20
  • @types/react 18.2.61
  • @types/react-dom 18.2.19
  • @typescript-eslint/eslint-plugin 7.1.0
  • eslint 8.56.0
  • eslint-config-next 14.1.1
  • prettier 3.2.5
  • typescript 5.3.3
pip_requirements
with-webhooks-python-flask/requirements.txt

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.