This is adapted from this Medium article by Nathan H. Leung. The major difference is that he used MailGun to receive e-mails, and SendGrid to send them. Instead I use NameCheap to receive them, but SendGrid is used in the exact same way!
Get your Github Education package
- From your GitHub Student Developer Pack get:
- your free
.me
domain from Namecheap. - your free SendGrid account.
- your free
Receive e-mails to your custom domain
In your Namecheap domain’s settings go to the Domain tab. Go to the REDIRECT EMAIL
section and set the Catch-All Alias to your private e-mail address.
Listing 1: Redirect any email to *@yourdomain.me to your private e-mail address.
Now any e-mail to your custom domain will get redirected to your e-mail. In Gmail they will appear as if they were sent to the targeted domain, e.g.: kontakt@jcubed.me
not your e-mail address you forward your e-mail to.
But how to send e-mails, j³?
, you may ask.
How to send e-mails
Remember you have a SendGrid account. This is where it comes into play. This part is the same as in the Medium article by Nathan H. Leung. The only difference is he used a trial account in his example, but you have 15000 e-mails per month for free while you’re a student thanks to your Github Student Developer Pack! Check out his full description in the article or use my shortened list here:
- Open your SendGrid account.
- Open your API key settings here.
- Hit the
Create API Key
button. - Save your API Key somewhere. You won’t see it again.
- Hit the
- Go to your Gmail settings.
- Go to the
Accounts and Import
tab. - Then to the
Send mail as:
section. - Add a new account.
- Go to the
Here’s a crazily awesome snippet Nathan has found. It’s tremendously useful.
SMTP Server: smtp.sendgrid.net
Username: apikey
Password: <your api key from step 3>
Listing 2: How to set the SMTP settings in your Gmail settings
The username is apikey
and the password is your actual API Key. This is an awesome find, because it’s not something SendGrid actively advertises you can do, but Nathan found it in SendGrid’s API docs here!
That’s it!
Free .me
domain for a year. Free 15000 e-mails per month thanks to SendGrid. The combination of both lets me put this here:
contact@jcubed.me
Sources
Again, much respect to Nathan H. Leung for his awesome article: