fix(email): change fallback sender to carrylight.de to prevent SPAM rejection
chore(release): bump version to 1.8.2
This commit is contained in:
parent
95487cc83f
commit
74eec23443
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "my-weekly-todo-list",
|
"name": "my-weekly-todo-list",
|
||||||
"version": "1.8.1",
|
"version": "1.8.2",
|
||||||
"description": "A web-based weekly task management application that organizes to-dos and calendar events in a single, intuitive weekly view",
|
"description": "A web-based weekly task management application that organizes to-dos and calendar events in a single, intuitive weekly view",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@ -106,7 +106,7 @@ export async function sendVerificationEmail(
|
|||||||
</html>
|
</html>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const from = process.env.SMTP_FROM || '"My Weekly ToDo\'s" <noreply@example.com>';
|
const from = process.env.SMTP_FROM || '"My Weekly ToDo\'s" <mail@carrylight.de>';
|
||||||
console.log(`[EMAIL] Sending verification email to ${email} from ${from}`);
|
console.log(`[EMAIL] Sending verification email to ${email} from ${from}`);
|
||||||
console.log(`\n======================================================`);
|
console.log(`\n======================================================`);
|
||||||
console.log(`[DEV VERIFICATION LINK]:\n${verifyLink}`);
|
console.log(`[DEV VERIFICATION LINK]:\n${verifyLink}`);
|
||||||
|
|||||||
22
test-conn.js
22
test-conn.js
@ -1,22 +0,0 @@
|
|||||||
const { PrismaClient } = require('@prisma/client');
|
|
||||||
|
|
||||||
const prisma = new PrismaClient({
|
|
||||||
datasources: {
|
|
||||||
db: {
|
|
||||||
url: "postgresql://postgres:pLQjZtDLYtAMu+ut5LamR5o9P1cgPE9Z@192.168.178.201:5432/postgres"
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
async function main() {
|
|
||||||
try {
|
|
||||||
const userCount = await prisma.user.count();
|
|
||||||
console.log(`Connection successful! Users: ${userCount}`);
|
|
||||||
process.exit(0);
|
|
||||||
} catch (error) {
|
|
||||||
console.error('Connection failed:', error);
|
|
||||||
process.exit(1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
main();
|
|
||||||
24
test-db-2.js
24
test-db-2.js
@ -1,24 +0,0 @@
|
|||||||
const { PrismaClient } = require('@prisma/client');
|
|
||||||
|
|
||||||
const prisma = new PrismaClient({
|
|
||||||
datasources: {
|
|
||||||
db: {
|
|
||||||
url: "postgresql://postgres:SH8P%2FhUQljT4XahQVELX3Q%3D%3D@192.168.178.201:5432/postgres?pgbouncer=true"
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
async function main() {
|
|
||||||
try {
|
|
||||||
const userCount = await prisma.user.count();
|
|
||||||
const taskCount = await prisma.task.count();
|
|
||||||
console.log(`Users in database: ${userCount}`);
|
|
||||||
console.log(`Tasks in database: ${taskCount}`);
|
|
||||||
process.exit(0);
|
|
||||||
} catch (error) {
|
|
||||||
console.error('Error connecting to database:', error);
|
|
||||||
process.exit(1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
main();
|
|
||||||
17
test-db.js
17
test-db.js
@ -1,17 +0,0 @@
|
|||||||
const { PrismaClient } = require('@prisma/client');
|
|
||||||
const prisma = new PrismaClient();
|
|
||||||
|
|
||||||
async function main() {
|
|
||||||
try {
|
|
||||||
const userCount = await prisma.user.count();
|
|
||||||
const taskCount = await prisma.task.count();
|
|
||||||
console.log(`Users in database: ${userCount}`);
|
|
||||||
console.log(`Tasks in database: ${taskCount}`);
|
|
||||||
process.exit(0);
|
|
||||||
} catch (error) {
|
|
||||||
console.error('Error connecting to database:', error);
|
|
||||||
process.exit(1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
main();
|
|
||||||
@ -1,35 +0,0 @@
|
|||||||
const nodemailer = require('nodemailer');
|
|
||||||
|
|
||||||
const transporter = nodemailer.createTransport({
|
|
||||||
host: "w00ff033.kasserver.com",
|
|
||||||
port: 587,
|
|
||||||
secure: false, // true for 465, false for 587
|
|
||||||
auth: {
|
|
||||||
user: "mail@carrylight.de",
|
|
||||||
pass: "QijU8e2A8p3FE8WS8esR",
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
async function main() {
|
|
||||||
try {
|
|
||||||
console.log("Verifying connection...");
|
|
||||||
await transporter.verify();
|
|
||||||
console.log("Server is ready to take our messages");
|
|
||||||
|
|
||||||
console.log("Sending test email...");
|
|
||||||
const info = await transporter.sendMail({
|
|
||||||
from: '"Test" <mail@carrylight.de>',
|
|
||||||
to: "mail@martin-bierschenk.de",
|
|
||||||
subject: "Test Verification Email",
|
|
||||||
text: "This is a test email.",
|
|
||||||
});
|
|
||||||
|
|
||||||
console.log("Message sent: %s", info.messageId);
|
|
||||||
process.exit(0);
|
|
||||||
} catch (error) {
|
|
||||||
console.error("Error sending email:", error);
|
|
||||||
process.exit(1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
main();
|
|
||||||
26
test-email-auth2.js
Normal file
26
test-email-auth2.js
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
const nodemailer = require('nodemailer');
|
||||||
|
|
||||||
|
const transporter = nodemailer.createTransport({
|
||||||
|
host: "w00ff033.kasserver.com",
|
||||||
|
port: 587,
|
||||||
|
secure: false,
|
||||||
|
auth: { user: "mail@carrylight.de", pass: "QijU8e2A8p3FE8WS8esR" },
|
||||||
|
tls: { rejectUnauthorized: false },
|
||||||
|
});
|
||||||
|
|
||||||
|
async function main() {
|
||||||
|
try {
|
||||||
|
const info = await transporter.sendMail({
|
||||||
|
from: '"My Weekly ToDo\'s" <mail@carrylight.de>',
|
||||||
|
to: "mail@martin-bierschenk.de",
|
||||||
|
subject: "Test from config",
|
||||||
|
html: "<p>Test</p>",
|
||||||
|
});
|
||||||
|
console.log("Message sent:", info.messageId);
|
||||||
|
process.exit(0);
|
||||||
|
} catch (error) {
|
||||||
|
console.error("Error:", error);
|
||||||
|
process.exit(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
main();
|
||||||
23
test-orig.js
23
test-orig.js
@ -1,23 +0,0 @@
|
|||||||
const { PrismaClient } = require('@prisma/client');
|
|
||||||
|
|
||||||
const prisma = new PrismaClient({
|
|
||||||
datasources: {
|
|
||||||
db: {
|
|
||||||
url: "postgresql://root:WKE7xeZohxdZit7eObjG@192.168.178.91:2665/My-Weekly-ToDo-List?schema=public"
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
async function main() {
|
|
||||||
try {
|
|
||||||
const userCount = await prisma.user.count();
|
|
||||||
const taskCount = await prisma.task.count();
|
|
||||||
console.log(`Original DB - Users: ${userCount}, Tasks: ${taskCount}`);
|
|
||||||
process.exit(0);
|
|
||||||
} catch (error) {
|
|
||||||
console.error('Error connecting to original DB:', error);
|
|
||||||
process.exit(1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
main();
|
|
||||||
@ -1,18 +0,0 @@
|
|||||||
const { PrismaClient } = require('@prisma/client');
|
|
||||||
|
|
||||||
const prisma = new PrismaClient();
|
|
||||||
|
|
||||||
async function main() {
|
|
||||||
try {
|
|
||||||
const tokens = await prisma.verificationToken.findMany();
|
|
||||||
const users = await prisma.user.findMany();
|
|
||||||
console.log("Tokens:", tokens);
|
|
||||||
console.log("Users:", users);
|
|
||||||
process.exit(0);
|
|
||||||
} catch (error) {
|
|
||||||
console.error('Error fetching data:', error);
|
|
||||||
process.exit(1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
main();
|
|
||||||
Loading…
Reference in New Issue
Block a user