Skip to content

Commit

Permalink
fix: send to kindle may reject emails without a body
Browse files Browse the repository at this point in the history
  • Loading branch information
agrmohit committed Mar 2, 2024
1 parent b284566 commit f0ceeda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export async function sendEmail() {
from: `${config.emailFrom} <${config.emailUser}>`,
to: config.emailRecipient,
subject: config.title,
text: `Sent by Omnivore EPUB (https://github.com/agrmohit/omnivore-epub)`,
attachments: [
{
path: config.outputFileName,
Expand Down
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import epub, { Chapter } from "npm:epub-gen-memory";
import config from "./config.json" with { type: "json" };
import { sendEmail } from "./email.ts";

const currentVersion = "v0.4.0";
const currentVersion = "v0.4.1";

console.log(`ℹ Omnivore EPUB ${currentVersion}`);
console.log("ℹ️ Homepage: https://github.com/agrmohit/omnivore-epub");
Expand Down

0 comments on commit f0ceeda

Please sign in to comment.