Skip to content

Instantly share code, notes, and snippets.

# echo Autocommiting...
# Date in format of "2019.09.04 - 11.19.09"
# which means Sept 4, 2019 at 11:19:09 AM
current_time=$(date "+%Y.%m.%d-%H.%M.%S")
git add .
git add -u
git commit -m "$current_time"
// Emailer.php
// http://www.mrventures.net/all-tutorials/sending-emails
<?php
// This code lives on my server at https://files.000webhost.com/
// This allows us to send data back to Unity
header("Access-Control-Allow-Origin: *");
// Evaluate data are all present
if (isset($_REQUEST["name"]) && isset($_REQUEST["fromEmail"])
&& isset($_REQUEST["toEmail"]) && isset($_REQUEST["message"]))
// Emailer.cs
// http://www.mrventures.net/all-tutorials/sending-emails
using System.Collections;
using System.Net;
using System.Net.Mail;
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;
using UnityEngine;
public class Emailer : MonoBehaviour {