Skip to content

Instantly share code, notes, and snippets.

View kostimarko's full-sized avatar

Kosti Marko kostimarko

View GitHub Profile

Keybase proof

I hereby claim:

  • I am kostimarko on github.
  • I am kostimarko (https://keybase.io/kostimarko) on keybase.
  • I have a public key ASDaV5Z47fKzgiUAHrM1SQcpWrWxpRp8QeIxwP_Kw9GZTgo

To claim this, I am signing this object:

<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
<title> </title>
<!--[if !mso]><!-- -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!--<![endif]-->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<mjml>
<mj-body background-color="#81d4f7">
<!-- START LOGO -->
<mj-section background-color="#ffffff" padding-left="20px" padding-right="20px" padding-top="20px" padding-bottom="20px">
<mj-column vertical-align="middle" padding-left="0px" padding-top="0px" padding-bottom="0px" padding-right="0px">
<mj-image width="200px" align="left" padding-left="0px" padding-top="0px" padding-bottom="0px" padding-right="0px" src="https://placeholder.com/wp-content/uploads/2018/10/placeholder.com-logo3.png" />
</mj-column>
</mj-section>
<!-- END LOGO -->
<mj-wrapper background-color="#ffffff">
<mj-section padding-left="0px" padding-right="0px" padding-top="0px" padding-bottom="0px">
<mj-column padding-left="0px" padding-right="0px" padding-top="0px" padding-bottom="0px">
<!-- First Paragraph-->
<mj-text font-size="18px" line-height="27px" padding-bottom="0px" padding-top="0px">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Dictumst vestibulum rhoncus est pellentesque elit ullamcorper dignissim cras tincidunt. </mj-text>
<!-- First Paragraph-->
<!-- Second Paragraph-->
<mj-text font-size="18px" line-height="27px">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Dictumst vestibulum rhoncus est pellentesque elit ullamcorper dignissim cras tincidunt. </mj-text>
<!-- Second Paragraph-->
<!-- Third Paragraph -->
<mj-section padding-left="0px" padding-right="0px" padding-top="0px" padding-bottom="0px">
<mj-column padding-left="0px" padding-right="0px" padding-top="0px" padding-bottom="0px">
<!-- Header Image-->
<mj-image href="https://kostimarko.design/" padding-left="0px" padding-right="0px" padding-top="0px" padding-bottom="0px" width="600px" src="https://designshack.net/wp-content/uploads/placeholder-image.png" />
<!--Header Image-->
</mj-column>
</mj-section>
<mj-section background-color="#ffffff" padding-left="20px" padding-right="20px" padding-top="20px" padding-bottom="20px">
<mj-column vertical-align="middle" padding-left="0px" padding-top="0px" padding-bottom="0px" padding-right="0px">
<mj-image width="200px" align="left" padding-left="0px" padding-top="0px" padding-bottom="0px" padding-right="0px" src="https://placeholder.com/wp-content/uploads/2018/10/placeholder.com-logo3.png" />
</mj-column>
</mj-section>
const functions = require("firebase-functions");
const nodemailer = require("nodemailer");
const axios = require("axios");
const moment = require("moment");
const momentTZ = require("moment-timezone");
try{
const GameData = await axios.get(
`https://api.mysportsfeeds.com/v2.1/pull/mlb/2019-regular/games.json?date=${now}&team=chicago-cubs`,
{
auth: {
username: "*********",
password: "*********"
}
}
);
const now = moment().format("YYYYMMDD");
const mailList = [
"yourEmailAddress@gmail.com"
];
const transporter = nodemailer.createTransport({
service: "gmail",
auth: {
user: "********",
pass: "********"
}