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
const express = require('express'); | |
const nodemailer = require('nodemailer'); | |
const app = express(); | |
app.use(express.json()); | |
app.post('/send-email', (req, res) => { | |
const { toEmail, subject, jsonData } = req.body; | |
console.log("Received JSON data:", req.body.jsonData); | |
const htmlContent = generateHtmlTable(jsonData); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Web Development Series</title> | |
</head> | |
<body> | |
<header> | |
<h1>What is HTML?</h1> |
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
// Intent to Close the Application | |
Intent intent = new Intent(Intent.ACTION_MAIN); | |
intent.addCategory(Intent.CATEGORY_HOME); | |
startActivity(intent); | |
// Switching Fragment with Zero BackStyack | |
FragmentManager fm = getActivity().getSupportFragmentManager(); | |
for(int i = 0; i < fm.getBackStackEntryCount(); ++i) { | |
fm.popBackStack(); | |
} |