Gmail Account Creator Github
17 Apr 2017
So having one account, you can automatically have many other mail accounts to Google. Also, this Gmail generator is known under the following names: Googlemail Trick, Gmail dot Trick, Fake gmail generator, Fake gmail. We do not store your gmail address. Useful links: Dots don't matter in Gmail addresses and Official Gmail Blog. In a matter of minutes and without a single line of code, Zapier allows you to automatically send info between GitHub and Gmail. Get started with workflows like: Create GitHub issues from new emails on Gmail Business Gmail Accounts Only.Or check out the rest of our guided workflows.Save time with Zapier; it's free to try.
I routinely have long-running scripts (e.g. for a data processing task) that I want to know when they’re complete. It seems like it should be simple for me to add in a little snippet of code that will send an email using Gmail to notify me, right? Unfortunately, it isn’t quite that simple for a lot of reasons, including security, attachment handling, configuration, etc. In this snippet, I’ve attached my constant copy and paste notify()
function, written into a command line script for easy sending on the command line.
Gmail Setup
If you’re like me, you have a gmail account with 2-factor authentication (and if you don’t, you should get that set up). In order to use this account to send email from, you’re going to have to configure gmail as follows:
Alternatively you could create an account to solely send notifications from and not give it two factor authentication, but you’d still have to do step 1. Even if you do all this stuff, Google Apps can still get in the way, so be sure to inspect any errors you get carefully!
Environment Setup
This script and most of my Python scripts contain configuration and security information in the environment. Therefore, open up your .profile
or other shell environment and add the following variables.
I’ve also used YAML configuration, dotenv files, and all sorts of other configuration for this as well. Choose what suits your application
Notify Script
And here is a command line version of the script that wraps the notify()
function. Note that it’s basic functionality is to send a simple alert and maybe attach some log or results files to the email, not to routinely send large amounts of HTML formatted messages!
Usage
So now you can send a simple notification as follows:
Or you can edit the subject and message with a few attachments:
Gmail Account Creator Github
Future versions of this script will allow you to pipe the message in via stdin so that you can chain the emailer along the command line. I also plan to do a better configuration, similar to how AWS CLI configures itself in a simple file in the home directory.