Category: Playing

Work blogs on some of the experiments Valley Wulf had done in development environments.

Using Mailgun in ASP.NET Core on Linux Mint 17

The Problem

How can I set up a simple ASP.NET Core web application (running on Linux Mint 17) that sends out email?  This is mostly so that the application can send out email on new account to confirm the user’s registration, and also to support password reset via email.

The Background

Some of you may know that I have hurt my left foot.  It is just so happened that .NET Core was released right around the same time.  To take a break from my usual routine and keep me distracted from my injury, I have decided to try something new: to learn C# and check out .NET Core on my Linux box (running Linux Mint 17.2 Rafaela / Ubuntu 14.04).

I started with the basic console application tutorial, then moved onto Web API, then Web Application.  The last one I tried was the tutorial on setting up email service with the web application.

I found parts of the email tutorial a bit tricky.  The reason being that not all email services out there support ASP.NET Core yet, and part of it being that plugging in credentials to their corresponding part in the API can be a bit confusing.

Because of that, I have decided to write up my own little tutorial so that later on, should I find the need to actually set up a web application with email service myself, I could follow these steps along and not having to figure these out all over again.

Read more

Sending Mail from WordPress on a Multiuser localhost on Linux Mint 17

The Problem

How can I have a WordPress in my multiuser localhost development Linux (Mint 17) box send out (registration) email as me?

The Background

I have a development box with Linux Mint 17 Qiana installed.  The box is configured to host multiple users.  Each user can serve up web content from his/her own home directory.  (In Apache lingo, mod_userdir module is enabled.)

In this box, I have WordPress set up in my home directory.  I want this WordPress to be able to send out email.  I don’t want these emails to be sent out as a generic system user.  Instead, they should be sent out using my name and my email address.  At the same time, and understandably, I don’t want other users to use my email account.  So, the configuration needs to be local to my home directory and not global for everyone on the box. Read more