-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
adnan wahab
committed
Oct 23, 2024
1 parent
adcab32
commit a7e67b2
Showing
4 changed files
with
52 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,16 +2,38 @@ import { Resend } from "resend"; | |
import * as React from "react"; | ||
|
||
|
||
const html = ` | ||
i am requesting 6k out of the 7k i lent you. - If it is more easier - you can repay $1000 a month at a time. | ||
const send_email = async () => { | ||
const resend = new Resend(); | ||
please fulfill this invoice - i need it for improving manufacturing hardware for robotics for students so that theer can be a dynamic land - which is humane computational medium - effective communication via text is not exactly possible on a large scale like 300 million - the USA only gets 50% approval for its presidents - at most. | ||
A better society is possible - if closer to 90-100% of approval happens on a daily basis - the current system was designed 250 years ago. | ||
Bret Victor and Alan Kay ---- are the ones should lead the future | ||
if you send the funds back today - i will never email you again, and i think thats better for both of us, no hard feelings. Sorry for making mistakes before. Thank you, have a good day. | ||
https://www.paypal.com/invoice/p/#8ZKMMRG5HF8EF2EB | ||
hi this is cool | ||
This is an automated message that will repeat daily until the request has been fufilled | ||
<img src="https://files.hashirama.blog/derp/static_assets/reflect_notion_homage.png" /> | ||
<img src="https://www.anthropic.com/_next/image?url=https%3A%2F%2Fwww-cdn.anthropic.com%2Fimages%2F4zrzovbb%2Fwebsite%2Fdfb574487680e9cea2cd05ca5533a8e5568ec202-1319x1512.gif&w=1920&q=75" /> | ||
`; | ||
|
||
const send_email = async (json: any) => { | ||
//console.log('json', json) | ||
const _ = 're_gPBiq268_5gRCCNH2bLAwyaXQ6qJ6qLfJ' | ||
const resend = new Resend(_); | ||
|
||
return new Response(JSON.stringify(html)); | ||
//console.log('resend', json) | ||
const data = await resend.emails.send({ | ||
from: "[email protected]", | ||
to: ["[email protected]"], | ||
subject: "Hello from Bun + Resend + React Email 🫓💌", | ||
text: "Hello, Adnan!", | ||
from: "[email protected]", | ||
subject: "Hello - Invoice for $6000/7000 (keep the rest that is fair including interest).", | ||
html: html | ||
}); | ||
|
||
//console.log('data', data) | ||
return new Response(JSON.stringify(data)); | ||
} | ||
export default send_email; | ||
|